feat: version number now includes Git commit short id

Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
Lars Wirzenius
2025-03-31 15:04:06 +03:00
parent 5a83c3d9d4
commit 7cab201b41
6 changed files with 10 additions and 6 deletions
+4
View File
@@ -21,6 +21,10 @@ fn main() {
.unwrap_or_else(|| String::from("unknown"));
println!("cargo:rustc-env=GIT_HEAD={hash}");
println!(
"cargo:rustc-env=VERSION={}@{hash}",
env!("CARGO_PKG_VERSION")
);
println!("cargo:rustc-rerun-if-changed=.git/HEAD");
if let Err(e) = subplot_build::codegen("ci-broker.subplot") {