A crate that provides programmatic access to information about the current build target inside build.rs
.
rust
// 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()
);
}
This crate is inspired from platforms
and is based on it's code.
Licensed under MIT license (LICENSE or http://opensource.org/licenses/MIT)