platforms 1.0.3

Rust platform registry with information about valid Rust platforms (target triple, target_arch, target_os) sourced from Rust Forge.
Documentation
1
2
3
4
fn main() {
    let target = std::env::var("TARGET").expect("TARGET env var not set");
    println!("cargo:rustc-env=TARGET={}", target);
}