You've already forked architect
984ad106ab
All input and output functions are raw. Improved APIs will be added incrementally.
14 lines
568 B
Rust
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:?})"));
|
|
}
|