Skip to content

Commit

Permalink
add edition field for the version information (tikv#7821)
Browse files Browse the repository at this point in the history
Signed-off-by: zhangjinpeng1987 <zhangjinpeng@pingcap.com>
  • Loading branch information
zhangjinpeng87 committed May 13, 2020
1 parent 61782ed commit 007556d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Expand Up @@ -68,13 +68,15 @@ pub fn tikv_version_info() -> String {
let fallback = "Unknown (env var does not exist when building)";
format!(
"\nRelease Version: {}\
\nEdition: {}\
\nGit Commit Hash: {}\
\nGit Commit Branch: {}\
\nUTC Build Time: {}\
\nRust Version: {}\
\nEnable Features: {}\
\nProfile: {}",
env!("CARGO_PKG_VERSION"),
option_env!("TIKV_EDITION").unwrap_or("Community"),
option_env!("TIKV_BUILD_GIT_HASH").unwrap_or(fallback),
option_env!("TIKV_BUILD_GIT_BRANCH").unwrap_or(fallback),
option_env!("TIKV_BUILD_TIME").unwrap_or(fallback),
Expand Down

0 comments on commit 007556d

Please sign in to comment.