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

Function app_version

supervisor/src/main.rs:25–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

async_mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected