Move GIT_VERSION injection later in build chain to reduce build times

This commit is contained in:
Alex Auvolat
2022-09-07 11:59:56 +02:00
parent 6f02c36a89
commit db61f41030
13 changed files with 76 additions and 79 deletions
-1
View File
@@ -24,7 +24,6 @@ hex = "0.4"
tracing = "0.1.30"
rand = "0.8"
sha2 = "0.9"
git-version = "0.3.4"
chrono = "0.4"
rmp-serde = "0.15"
-1
View File
@@ -14,4 +14,3 @@ pub mod persister;
pub mod time;
pub mod token_bucket;
pub mod tranquilizer;
pub mod version;
-7
View File
@@ -1,7 +0,0 @@
pub fn garage() -> &'static str {
option_env!("GIT_VERSION").unwrap_or(git_version::git_version!(
prefix = "git:",
cargo_prefix = "cargo:",
fallback = "unknown"
))
}