You've already forked architect
Initial commit
All input and output functions are raw. Improved APIs will be added incrementally.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
[package]
|
||||
name = "sample"
|
||||
version = "0.0.0"
|
||||
|
||||
authors.workspace = true
|
||||
edition.workspace = true
|
||||
license-file.workspace = true
|
||||
rust-version.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[build-dependencies]
|
||||
architect = { workspace = true }
|
||||
@@ -0,0 +1,13 @@
|
||||
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:?})"));
|
||||
}
|
||||
Reference in New Issue
Block a user