Include git based version
All checks were successful
Build and deploy / Build container and manifests (push) Successful in 6m29s

This commit is contained in:
2025-04-18 15:20:36 +02:00
parent d602220c4b
commit e9fe169a9a
9 changed files with 51 additions and 11 deletions

11
src/version.rs Normal file
View File

@@ -0,0 +1,11 @@
pub const VERSION: &str = get_version();
const fn get_version() -> &'static str {
if let Some(version) = std::option_env!("RELEASE_VERSION")
&& !version.is_empty()
{
version
} else {
git_version::git_version!(fallback = "unknown")
}
}