diff --git a/rust/build.rs b/rust/build.rs index 4cbb317..5dbb4a5 100644 --- a/rust/build.rs +++ b/rust/build.rs @@ -7,5 +7,6 @@ fn main() { .output() .unwrap(); let git_hash = String::from_utf8(output.stdout).unwrap(); + println!("cargo:rustc-rerun-if-changed=.git/HEAD"); println!("cargo:rustc-env=GIT_HASH={}", git_hash); }