From 8da7f9d247b3ea3122f1c3746e8188733fc2f21a Mon Sep 17 00:00:00 2001 From: Chris Hager Date: Wed, 3 Jul 2024 14:18:14 +0200 Subject: [PATCH] feat: add full git version to version output --- crates/rbuilder/src/utils/build_info.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/rbuilder/src/utils/build_info.rs b/crates/rbuilder/src/utils/build_info.rs index 20efd0d9..ef3bc18b 100644 --- a/crates/rbuilder/src/utils/build_info.rs +++ b/crates/rbuilder/src/utils/build_info.rs @@ -5,11 +5,12 @@ mod internal { } use internal::{ - BUILT_TIME_UTC, FEATURES, GIT_COMMIT_HASH_SHORT, GIT_DIRTY, GIT_HEAD_REF, PROFILE, + BUILT_TIME_UTC, FEATURES, GIT_COMMIT_HASH_SHORT, GIT_DIRTY, GIT_HEAD_REF, GIT_VERSION, PROFILE, RUSTC_VERSION, }; pub fn print_version_info() { + println!("version: {}", GIT_VERSION.unwrap_or_default()); println!("commit: {}", GIT_COMMIT_HASH_SHORT.unwrap_or_default()); println!("dirty: {}", GIT_DIRTY.unwrap_or_default()); println!("branch: {}", GIT_HEAD_REF.unwrap_or_default());