mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-29 00:17:12 +00:00
Move GIT_VERSION injection later in build chain to reduce build times
This commit is contained in:
@@ -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"
|
||||
))
|
||||
}
|
||||
Reference in New Issue
Block a user