build-target 0.1.0

A crate that provides programmatic access to information about the current build target.
Documentation

build-target

Build crates.io Documentation dependency status MIT

A crate that provides programmatic access to information about the current build target inside build.rs.

Example

// inside build.rs
fn main() {
	// panics are just the easiest way to output in build scripts.
    panic!("current build target (arch={}, env={}, os={}, family={})",
        Arch::target().unwrap(),
        Env::target().unwrap(),
        Os::target().unwrap(),
        Family::target().unwrap()
    );
}

Attribution

This crate is inspired from platforms and is based on it's code.

License

Licensed under MIT license (LICENSE or http://opensource.org/licenses/MIT)