Function metadata_from_env

Source
pub fn metadata_from_env() -> RunMetadata
Expand description

Builds the initial reproducibility metadata snapshot from the environment.

Requested geometry/DPR come from config_from_env; the operating system is always populated. Time origin accepts exactly process_main, otherwise defaults to app_run. Live backend and observed DPR remain unset until a host publishes them.

ยงExamples

let metadata = ailloli_ui_bench::metadata_from_env();
assert_eq!(metadata.operating_system.as_deref(), Some(std::env::consts::OS));
assert!(metadata.window_width.is_some());