Crates.io | build-env |
lib.rs | build-env |
version | 0.3.1 |
source | src |
created_at | 2016-07-29 15:20:57.32027 |
updated_at | 2021-05-09 05:33:36.169156 |
description | Extract information about the build process from the environment |
homepage | |
repository | https://github.com/jmesmon/build-env |
max_upload_size | |
id | 5821 |
size | 24,945 |
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