feat: Log version string during startup

This commit is contained in:
2025-09-05 04:55:29 +02:00
parent edee032b91
commit e2fb680cd6
4 changed files with 37 additions and 2 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")
}
}