fix: version handling in protocol-testing

This commit is contained in:
adrian
2025-09-16 08:58:51 +02:00
committed by Adrian Benavides
parent d728440048
commit 3332a88e6f
4 changed files with 50 additions and 11 deletions

15
protocol-testing/build.rs Normal file
View File

@@ -0,0 +1,15 @@
use std::process::Command;
fn hash() {
let output = Command::new("git")
.args(["rev-parse", "HEAD"])
.output()
.unwrap();
let git_hash = String::from_utf8(output.stdout).unwrap();
println!("cargo:rustc-env=GIT_HASH={git_hash}");
println!("cargo:rerun-if-changed=.git/HEAD");
}
fn main() {
hash();
}