MCPcopy Create free account
hub / github.com/Rust-Web-Development/code / get_version

Function get_version

ch_11/build.rs:39–49  ·  view source on GitHub ↗
(impl_commit: &str)

Source from the content-addressed store, hash-verified

37}
38
39fn get_version(impl_commit: &str) -> String {
40 let commit_dash = if impl_commit.is_empty() { "" } else { "-" };
41
42 format!(
43 "{}{}{}-{}",
44 std::env::var("CARGO_PKG_VERSION").unwrap_or_default(),
45 commit_dash,
46 impl_commit,
47 get_platform(),
48 )
49}
50
51fn main() {
52 generate_cargo_keys();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected