Skip to content

Commit

Permalink
feat: add full git version to version output
Browse files Browse the repository at this point in the history
  • Loading branch information
metachris committed Jul 3, 2024
1 parent 27a8867 commit 8da7f9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/rbuilder/src/utils/build_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 8da7f9d

Please sign in to comment.