diff options
author | Alex Auvolat <alex@adnab.me> | 2022-09-07 11:59:56 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-09-07 11:59:56 +0200 |
commit | db61f41030678c5756c844c8aa41a210c658769e (patch) | |
tree | 492bff626d37cbcdfb2a65ee2580a1cc60c13125 /src/util | |
parent | 6f02c36a89d93b04944a3f0882b6f6b703d9c012 (diff) | |
download | garage-db61f41030678c5756c844c8aa41a210c658769e.tar.gz garage-db61f41030678c5756c844c8aa41a210c658769e.zip |
Move GIT_VERSION injection later in build chain to reduce build times
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/Cargo.toml | 1 | ||||
-rw-r--r-- | src/util/lib.rs | 1 | ||||
-rw-r--r-- | src/util/version.rs | 7 |
3 files changed, 0 insertions, 9 deletions
diff --git a/src/util/Cargo.toml b/src/util/Cargo.toml index 5f3e5c57..af57008e 100644 --- a/src/util/Cargo.toml +++ b/src/util/Cargo.toml @@ -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" diff --git a/src/util/lib.rs b/src/util/lib.rs index 47c85c3a..fce151af 100644 --- a/src/util/lib.rs +++ b/src/util/lib.rs @@ -14,4 +14,3 @@ pub mod persister; pub mod time; pub mod token_bucket; pub mod tranquilizer; -pub mod version; diff --git a/src/util/version.rs b/src/util/version.rs deleted file mode 100644 index 8882d035..00000000 --- a/src/util/version.rs +++ /dev/null @@ -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" - )) -} |