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

#1382 in Development tools

Download history 4655/week @ 2024-09-02 5001/week @ 2024-09-09 4586/week @ 2024-09-16 5976/week @ 2024-09-23 5084/week @ 2024-09-30 5801/week @ 2024-10-07 6047/week @ 2024-10-14 5717/week @ 2024-10-21 5414/week @ 2024-10-28 6117/week @ 2024-11-04 6079/week @ 2024-11-11 7400/week @ 2024-11-18 5943/week @ 2024-11-25 7081/week @ 2024-12-02 8110/week @ 2024-12-09 7298/week @ 2024-12-16

28,582 downloads per month
Used in 15 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