From 5d7b140ba10e8c7880dd31e0ca8564e16483d944 Mon Sep 17 00:00:00 2001 From: Sofia Date: Sat, 8 Aug 2026 00:14:02 +0300 Subject: [PATCH] Rerun if .git/HEAD changed --- rust/build.rs | 1 + 1 file changed, 1 insertion(+) 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); }