#env #build #process #environment #extract

build-env

Extract information about the build process from the environment

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
Download history 460/week @ 2021-02-26 554/week @ 2021-03-05 489/week @ 2021-03-12 516/week @ 2021-03-19 448/week @ 2021-03-26 840/week @ 2021-04-02 576/week @ 2021-04-09 774/week @ 2021-04-16 710/week @ 2021-04-23 534/week @ 2021-04-30 796/week @ 2021-05-07 742/week @ 2021-05-14 673/week @ 2021-05-21 825/week @ 2021-05-28 696/week @ 2021-06-04 636/week @ 2021-06-11

2,454 downloads per month
Used in 5 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