Store more metadata

And other various improvements
This commit is contained in:
nora 2025-07-04 22:47:06 +02:00
parent f6fac25c6f
commit 7f1702bc28
11 changed files with 75 additions and 55 deletions

View file

@ -12,6 +12,12 @@ fn main() {
};
println!("cargo:rustc-env=GIT_COMMIT={version}");
let version_short = if version.len() > 16 {
&version[..16]
} else {
&version
};
println!("cargo:rustc-env=GIT_COMMIT_SHORT={version_short}");
}
fn try_get_commit() -> color_eyre::Result<String> {