From 007556d3bc0ae058d08caed39e71c4ddd4de4195 Mon Sep 17 00:00:00 2001 From: zhangjinpeng1987 Date: Wed, 13 May 2020 21:30:55 +0800 Subject: [PATCH] add edition field for the version information (#7821) Signed-off-by: zhangjinpeng1987 --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index f7ab4e77c3f..ba432dc9d1e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -68,6 +68,7 @@ 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: {}\ @@ -75,6 +76,7 @@ pub fn tikv_version_info() -> String { \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),