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

#842 in Development tools

Download history 1583/week @ 2022-07-31 1402/week @ 2022-08-07 1414/week @ 2022-08-14 1083/week @ 2022-08-21 778/week @ 2022-08-28 1215/week @ 2022-09-04 1057/week @ 2022-09-11 1187/week @ 2022-09-18 1362/week @ 2022-09-25 1246/week @ 2022-10-02 1195/week @ 2022-10-09 955/week @ 2022-10-16 1008/week @ 2022-10-23 1025/week @ 2022-10-30 887/week @ 2022-11-06 1077/week @ 2022-11-13

4,035 downloads per month
Used in 10 crates (via libsystemd-sys)

Apache-2.0 OR MIT

12KB
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

Documentation Crates.io Travis

No runtime deps