platforms 1.1.0

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