1 2 3 4 5 6 7 8
fn main() { // Expose the compile-time target triple so service.rs can use it // to construct architecture-correct rustup toolchain paths. println!( "cargo::rustc-env=TARGET={}", std::env::var("TARGET").expect("TARGET env var must be set by cargo") ); }