All checks were successful
Build and deploy / Build container and manifests (push) Successful in 2m30s
12 lines
276 B
Rust
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")
|
|
}
|
|
}
|