build-env

Crates.iobuild-env
lib.rsbuild-env
version0.3.1
sourcesrc
created_at2016-07-29 15:20:57.32027
updated_at2021-05-09 05:33:36.169156
descriptionExtract information about the build process from the environment
homepage
repositoryhttps://github.com/jmesmon/build-env
max_upload_size
id5821
size24,945
Cody Schafer (codyps)

documentation

https://docs.rs/crate/build-env

README

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

Commit count: 48

cargo fmt