@@ -28,8 +28,27 @@ pub fn info(_: Info) -> Result<()> {
28
28
29
29
/// print Version of Youki
30
30
pub fn print_youki ( ) {
31
- println ! ( "{:<18}{}" , "Version" , env!( "CARGO_PKG_VERSION" ) ) ;
32
- println ! ( "{:<18}{}" , "Commit" , env!( "VERGEN_GIT_SHA" ) ) ;
31
+ println ! ( "{:<16}" , "Build" ) ;
32
+ println ! ( " {:<16}{}" , "Version" , env!( "CARGO_PKG_VERSION" ) ) ;
33
+ println ! ( " {:<16}{}" , "Commit" , env!( "VERGEN_GIT_SHA" ) ) ;
34
+ let mut enabled_features: Vec < & str > = Vec :: new ( ) ;
35
+ #[ cfg( feature = "systemd" ) ]
36
+ enabled_features. push ( "systemd" ) ;
37
+ #[ cfg( feature = "v1" ) ]
38
+ enabled_features. push ( "v1" ) ;
39
+ #[ cfg( feature = "v2" ) ]
40
+ enabled_features. push ( "v2" ) ;
41
+ #[ cfg( feature = "cgroupsv2_devices" ) ]
42
+ enabled_features. push ( "cgroupsv2_devices" ) ;
43
+ #[ cfg( feature = "seccomp" ) ]
44
+ enabled_features. push ( "seccomp" ) ;
45
+ #[ cfg( feature = "wasm-wasmer" ) ]
46
+ enabled_features. push ( "wasm-wasmer" ) ;
47
+ #[ cfg( feature = "wasm-wasmedge" ) ]
48
+ enabled_features. push ( "wasm-wasmedge" ) ;
49
+ #[ cfg( feature = "wasm-wasmtime" ) ]
50
+ enabled_features. push ( "wasm-wasmtime" ) ;
51
+ println ! ( " {:<16}{}" , "Features" , enabled_features. join( ", " ) ) ;
33
52
}
34
53
35
54
/// Print Kernel Release, Version and Architecture
0 commit comments