Rerun if .git/HEAD changed

This commit is contained in:
Sofia 2026-08-08 00:14:02 +03:00
parent 8e1bf9b129
commit 5d7b140ba1

View File

@ -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);
}