siranga/src/version.rs
Dreaded_X 75bfd4d5cf
All checks were successful
Build and deploy / Build container and manifests (push) Successful in 2m30s
Fixed version string
2025-04-18 14:12:30 +02:00

12 lines
276 B
Rust

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")
}
}