6 releases (3 breaking)
Uses old Rust 2015
0.3.1 | May 9, 2021 |
---|---|
0.3.0 | Sep 8, 2020 |
0.2.0 | Aug 21, 2020 |
0.1.0 | Aug 21, 2020 |
0.0.2 | Jul 29, 2016 |
#1355 in Development tools
23,641 downloads per month
Used in 13 crates
(2 directly)
13KB
237 lines
build-env
Get information about the build from environment variables
let mut be = build_env::BuildEnv::from_env().unwrap();
let _: Option<OsString> = be.var_os("CC");
Prints all used env vars in cargo dependency format:
cargo:rerun-if-env-changed=CC_target-triple
cargo:rerun-if-env-changed=CC_target_triple
cargo:rerun-if-env-changed=HOST_CC
cargo:rerun-if-env-changed=CC