Expand description
§MobileCoin build-script helper
Cargo build-script assistance, from MobileCoin.
This crate provides a programmatic API for dealing with the various strings passed into build scripts via environment variables.
use mc_build_rs::Environment;
let env = Environment::new().expect("Could not parse environment");
assert_eq!(env.name(), "mc_build_rs");
Structs§
- Cargo
Builder - A builder-pattern which constructs a command to invoke cargo build
- Environment
- A description of the current build environment
Enums§
- Endianness
- An enumeration of endianness types
- Endianness
Error - An enumeration of errors which can occur while parsing the endianness environment variable
- Environment
Error - An enumeration of errors which can occur when parsing the build environment
- Target
Family - An enumeration of target family types
- Target
Family Error - An enumeration of errors which can occur while parsing the target family environment variable
Functions§
- rerun_
if_ path_ changed - Adds all the known source files under the given path which match the given extensions and filenames.