Problem When a build.rs script emits cargo:rerun-if-env-changed, it is not re-run when the value of the specified variable is changed via the env configuration. Steps build.rs: pub fn main() { println!("cargo:rerun-if-env-changed=FOO"); ...
cargo::rerun-on-env-changedis purely additive and doesn't disable a default watch set likecargo::rerun-on-changeddoes, so emitting it automatically seems like a good idea. Although, I'm not sure it's actually needed for theCARGO_environment? It depends on how aggressive Cargo is at cachin...