From 0fa65b7e6881d1e30509d203301156e745a4437b Mon Sep 17 00:00:00 2001 From: bstrie <865233+bstrie@users.noreply.github.com> Date: Thu, 7 Apr 2022 10:40:48 -0400 Subject: [PATCH] fix: rebuild enarx bin when binary dependencies change This works around the bug reported at https://github.com/rust-lang/cargo/issues/10527 Signed-off-by: bstrie <865233+bstrie@users.noreply.github.com> --- build.rs | 3 +++ 1 file changed, 3 insertions(+) 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);