@@ -48,6 +48,7 @@ impl Cmd {
4848 check_version ( & print) . await ?;
4949 check_rust_version ( & print) ;
5050 check_wasm_target ( & print) ;
51+ check_optional_features ( & print) ;
5152 show_config_path ( & print, & self . config_locator ) ?;
5253 show_data_path ( & print) ?;
5354 show_xdr_version ( & print) ;
@@ -98,8 +99,8 @@ async fn print_network(
9899 } ;
99100
100101 print. globeln ( format ! ( "{prefix} {name:?} ({})" , network. rpc_url, ) ) ;
101- print. blankln ( format ! ( " protocol {}" , version_info. protocol_version) ) ;
102- print. blankln ( format ! ( " rpc {}" , version_info. version) ) ;
102+ print. blankln ( format ! ( "protocol {}" , version_info. protocol_version) ) ;
103+ print. blankln ( format ! ( "rpc {}" , version_info. version) ) ;
103104
104105 Ok ( ( ) )
105106}
@@ -200,6 +201,25 @@ fn check_wasm_target(print: &Print) {
200201 }
201202}
202203
204+ fn check_optional_features ( print : & Print ) {
205+ #[ cfg( feature = "additional-libs" ) ]
206+ {
207+ print. checkln ( "Wasm optimization" ) ;
208+ print. checkln ( "Secure store (OS keyring)" ) ;
209+ print. checkln ( "Ledger hardware wallet" ) ;
210+ }
211+
212+ #[ cfg( not( feature = "additional-libs" ) ) ]
213+ {
214+ print. warnln (
215+ "The following features are disabled until `--features additional-libs` is used:" ,
216+ ) ;
217+ print. blankln ( "- Wasm optimization" ) ;
218+ print. blankln ( "- Secure store (OS keyring)" ) ;
219+ print. blankln ( "- Ledger hardware wallet" ) ;
220+ }
221+ }
222+
203223fn get_expected_wasm_target ( ) -> String {
204224 let Ok ( current_version) = version ( ) else {
205225 return "wasm32v1-none" . into ( ) ;
0 commit comments