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

Function app_version

kms/src/main.rs:24–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22mod onboard_service;
23
24fn app_version() -> String {
25 const CARGO_PKG_VERSION: &str = env!("CARGO_PKG_VERSION");
26 const VERSION: &str = git_version::git_version!(
27 args = ["--abbrev=20", "--always", "--dirty=-modified"],
28 prefix = "git:",
29 fallback = "unknown"
30 );
31 format!("v{CARGO_PKG_VERSION} ({VERSION})")
32}
33
34#[derive(Parser)]
35#[command(author, version, about, long_version = app_version())]

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected