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
+7
View File
@@ -0,0 +1,7 @@
pub fn garage_version() -> &'static str {
option_env!("GIT_VERSION").unwrap_or(git_version::git_version!(
prefix = "git:",
cargo_prefix = "cargo:",
fallback = "unknown"
))
}