Crate mc_build_rs

Source
Expand description

§MobileCoin build-script helper

Project ChatLicenseArchitecture: anyCrates.ioDocs StatusDependency StatusCodeCov StatusGitHub Workflow StatusContributor Covenant

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§

CargoBuilder
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
EndiannessError
An enumeration of errors which can occur while parsing the endianness environment variable
EnvironmentError
An enumeration of errors which can occur when parsing the build environment
TargetFamily
An enumeration of target family types
TargetFamilyError
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.