Crate mc_build_rs
source ·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
- A builder-pattern which constructs a command to invoke cargo build
- A description of the current build environment
Enums
- An enumeration of endianness types
- An enumeration of errors which can occur while parsing the endianness environment variable
- An enumeration of errors which can occur when parsing the build environment
- An enumeration of target family types
- An enumeration of errors which can occur while parsing the target family environment variable
Functions
- Adds all the known source files under the given path which match the given extensions and filenames.