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

Function get_version

ch_10/build.rs:45–55  ·  view source on GitHub ↗
(impl_commit: &str)

Source from the content-addressed store, hash-verified

43}
44
45fn get_version(impl_commit: &str) -> String {
46 let commit_dash = if impl_commit.is_empty() { "" } else { "-" };
47
48 format!(
49 "{}{}{}-{}",
50 std::env::var("CARGO_PKG_VERSION").unwrap_or_default(),
51 commit_dash,
52 impl_commit,
53 get_platform(),
54 )
55}
56
57fn main() {
58 generate_cargo_keys();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected