build-env 0.3.1

Extract information about the build process from the environment
Documentation
  • Coverage
  • 75%
    12 out of 16 items documented0 out of 13 items with examples
  • Size
  • Source code size: 24.57 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.15 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • codyps/build-env
    1 0 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • codyps

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