diff --git a/build.rs b/build.rs index 3b7625c96..d5b78b3a6 100644 --- a/build.rs +++ b/build.rs @@ -206,6 +206,9 @@ fn main() { println!("cargo:rerun-if-env-changed=OUT_DIR"); println!("cargo:rerun-if-env-changed=PROFILE"); + // FIXME: this exists to work around https://github.com/rust-lang/cargo/issues/10527 + println!("cargo:rerun-if-changed=src/bin"); + let out_dir = PathBuf::from(std::env::var("OUT_DIR").unwrap()); let out_dir_proto = out_dir.join("protos"); create(&out_dir_proto);