usestd::env;fnmain(){// Cargo sets the host and target env vars for build scripts, but not crates:
// https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-build-scripts
// So we just re-export them to the crate code under a non-clashing name.
export_var("PROFILE",&env::var("PROFILE").unwrap());// By default Cargo only runs the build script when a file changes.
// This makes it re-run on target change
println!("cargo:rerun-if-changed-env=PROFILE")}/// this is stolen from some git repo
fnexport_var(name:&str, value:&str){println!("cargo:rustc-env={}={}", name, value);}