Files
authelia-controller/src/version.rs
Dreaded_X e9fe169a9a
All checks were successful
Build and deploy / Build container and manifests (push) Successful in 6m29s
Include git based version
2025-04-18 15:30:52 +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")
}
}