Use 7 chars for the git SHA
This commit is contained in:
parent
7c704b69ed
commit
b1764b7fe3
|
@ -99,7 +99,7 @@ impl VersionInfo {
|
||||||
Self {
|
Self {
|
||||||
version: String::from(env!("VERGEN_BUILD_SEMVER")),
|
version: String::from(env!("VERGEN_BUILD_SEMVER")),
|
||||||
timestamp: String::from(env!("VERGEN_BUILD_TIMESTAMP")),
|
timestamp: String::from(env!("VERGEN_BUILD_TIMESTAMP")),
|
||||||
git_sha: String::from(&env!("VERGEN_GIT_SHA")[0..8]),
|
git_sha: String::from(&env!("VERGEN_GIT_SHA")[0..7]),
|
||||||
git_timestamp: String::from(env!("VERGEN_GIT_COMMIT_TIMESTAMP")),
|
git_timestamp: String::from(env!("VERGEN_GIT_COMMIT_TIMESTAMP")),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -143,7 +143,7 @@ pub fn setup() -> Rocket<Build> {
|
||||||
Box::pin(async move {
|
Box::pin(async move {
|
||||||
let name = env!("CARGO_PKG_NAME");
|
let name = env!("CARGO_PKG_NAME");
|
||||||
let version = env!("VERGEN_BUILD_SEMVER");
|
let version = env!("VERGEN_BUILD_SEMVER");
|
||||||
let git_sha = &env!("VERGEN_GIT_SHA")[0..8];
|
let git_sha = &env!("VERGEN_GIT_SHA")[0..7];
|
||||||
|
|
||||||
println!("☀️ Started {name} v{version} (git @{git_sha})");
|
println!("☀️ Started {name} v{version} (git @{git_sha})");
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue