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

Download history 4051/week @ 2024-07-21 4607/week @ 2024-07-28 4746/week @ 2024-08-04 4320/week @ 2024-08-11 4281/week @ 2024-08-18 4392/week @ 2024-08-25 4614/week @ 2024-09-01 5014/week @ 2024-09-08 4666/week @ 2024-09-15 5502/week @ 2024-09-22 5482/week @ 2024-09-29 5850/week @ 2024-10-06 6035/week @ 2024-10-13 5746/week @ 2024-10-20 5326/week @ 2024-10-27 6196/week @ 2024-11-03

23,641 downloads per month
Used in 13 crates (2 directly)

Apache-2.0 OR MIT

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

Documentation Crates.io Travis

No runtime deps