@@ -29,7 +29,7 @@ use clarity::util::hash::Sha256Sum;
29
29
use clarity:: util:: secp256k1:: MessageSignature ;
30
30
use clarity:: vm:: types:: { QualifiedContractIdentifier , TupleData } ;
31
31
use clarity:: vm:: Value ;
32
- use once_cell :: sync :: Lazy ;
32
+ use lazy_static :: lazy_static ;
33
33
use serde:: { Deserialize , Serialize } ;
34
34
use stacks_common:: address:: {
35
35
b58, AddressHashMode , C32_ADDRESS_VERSION_MAINNET_MULTISIG ,
@@ -48,20 +48,22 @@ const BUILD_TYPE: &'static str = "debug";
48
48
#[ cfg( not( debug_assertions) ) ]
49
49
const BUILD_TYPE : & ' static str = "release" ;
50
50
51
- static VERSION_STRING : Lazy < String > = Lazy :: new ( || {
52
- let pkg_version = option_env ! ( "STACKS_NODE_VERSION" ) . unwrap_or ( env ! ( "CARGO_PKG_VERSION" ) ) ;
53
- let git_branch = GIT_BRANCH . unwrap_or ( "" ) ;
54
- let git_commit = GIT_COMMIT . unwrap_or ( "" ) ;
55
- format ! (
56
- "{} ({}:{}, {} build, {} [{}])" ,
57
- pkg_version,
58
- git_branch,
59
- git_commit,
60
- BUILD_TYPE ,
61
- std:: env:: consts:: OS ,
62
- std:: env:: consts:: ARCH
63
- )
64
- } ) ;
51
+ lazy_static ! {
52
+ static ref VERSION_STRING : String = {
53
+ let pkg_version = option_env!( "STACKS_NODE_VERSION" ) . unwrap_or( env!( "CARGO_PKG_VERSION" ) ) ;
54
+ let git_branch = GIT_BRANCH . unwrap_or( "" ) ;
55
+ let git_commit = GIT_COMMIT . unwrap_or( "" ) ;
56
+ format!(
57
+ "{} ({}:{}, {} build, {} [{}])" ,
58
+ pkg_version,
59
+ git_branch,
60
+ git_commit,
61
+ BUILD_TYPE ,
62
+ std:: env:: consts:: OS ,
63
+ std:: env:: consts:: ARCH
64
+ )
65
+ } ;
66
+ }
65
67
66
68
#[ derive( Parser , Debug ) ]
67
69
#[ command( author, version, about) ]
0 commit comments