File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
cli/src/commands/build_info Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,15 @@ impl Command {
99 let build_env = BuildEnv :: get ( ) ;
1010 println ! (
1111 r#"
12+ Version: {}
1213Build time: {}
1314Commit SHA: {}
1415Commit time: {}
1516Commit branch: {}
1617Rustc channel: {}
1718Rustc version: {}
1819"# ,
20+ build_env. version,
1921 build_env. time,
2022 build_env. git. commit_hash,
2123 build_env. git. commit_time,
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ pub enum SnarkerStrategy {
5555#[ derive( Serialize , Deserialize , Debug , Clone ) ]
5656pub struct BuildEnv {
5757 pub time : String ,
58+ pub version : String ,
5859 pub git : GitBuildEnv ,
5960 pub cargo : CargoBuildEnv ,
6061 pub rustc : RustCBuildEnv ,
@@ -90,6 +91,7 @@ impl BuildEnv {
9091 pub fn get ( ) -> Self {
9192 Self {
9293 time : env ! ( "VERGEN_BUILD_TIMESTAMP" ) . to_owned ( ) ,
94+ version : env ! ( "VERGEN_GIT_DESCRIBE" ) . to_owned ( ) ,
9395 git : GitBuildEnv {
9496 commit_time : env ! ( "VERGEN_GIT_COMMIT_TIMESTAMP" ) . to_owned ( ) ,
9597 commit_hash : env ! ( "VERGEN_GIT_SHA" ) . to_owned ( ) ,
You can’t perform that action at this time.
0 commit comments