fn main() { println!("cargo:rerun-if-changed=build.rs"); // Forward the target to the library. Because this // library is only ment for use with cargo tests then // the target here will always be the target the user // is currently compiling tests for. println!( "cargo:rustc-env=TREADMILL_TARGET={}", std::env::var("TARGET").unwrap() ); }