build-env 0.2.0

Extract information about the build process from the environment
Documentation

build-env

Get information about the build from environment variables

let mut be = build_env::BuildEnv::from_env();
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