MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / app_version

Function app_version

gateway/src/main.rs:54–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52static ALLOCATOR: jemallocator::Jemalloc = jemallocator::Jemalloc;
53
54fn 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())]

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected