()
| 52 | static ALLOCATOR: jemallocator::Jemalloc = jemallocator::Jemalloc; |
| 53 | |
| 54 | fn app_version() -> String { |
| 55 | const CARGO_PKG_VERSION: &str = env!("CARGO_PKG_VERSION"); |
| 56 | const VERSION: &str = git_version::git_version!( |
| 57 | args = ["--abbrev=20", "--always", "--dirty=-modified"], |
| 58 | prefix = "git:", |
| 59 | fallback = "unknown" |
| 60 | ); |
| 61 | format!("v{CARGO_PKG_VERSION} ({VERSION})") |
| 62 | } |
| 63 | |
| 64 | #[derive(Parser)] |
| 65 | #[command(author, version, about, long_version = app_version())] |