Files
architect/sample/build.rs
T
davidskrundz 984ad106ab Initial commit
All input and output functions are raw. Improved APIs will be added incrementally.
2025-03-24 19:48:04 -07:00

14 lines
568 B
Rust

fn main() {
for (k, v) in std::env::vars() {
architect::output::raw::warning(&format!("{k}={v}"));
}
let manifest_path = architect::input::raw::cargo_manifest_path_os().unwrap();
architect::output::raw::warning(&format!("Manifest Path: {manifest_path:?}"));
let arch = architect::input::raw::cargo_cfg_target_arch_os().unwrap();
let os = architect::input::raw::cargo_cfg_target_os_os().unwrap();
let endian = architect::input::raw::cargo_cfg_target_endian_os().unwrap();
architect::output::raw::warning(&format!("Target: {arch:?} {os:?} ({endian:?})"));
}