1 2 3 4 5 6 7 8
// Fetch build target and define this for the compiler fn main() { println!( "cargo:rustc-env=TARGET={}", std::env::var("TARGET").unwrap() ); }