@@ -8,29 +8,32 @@ name = "mushroom"
88required-features = [" bin" ]
99
1010[features ]
11- bin = [" dep:clap" , " dep:mushroom-verify" ]
11+ default = [" insecure" , " snp" , " tdx" ]
12+ insecure = [" dep:loader" , " dep:snp-types" , " dep:supervisor-services" ]
13+ snp = [" dep:loader" , " mushroom-verify?/snp" , " dep:snp-types" ]
14+ tdx = [" dep:loader" , " mushroom-verify?/tdx" , " dep:qgs-client" , " dep:tdx-types" ]
15+ bin = [" dep:clap" , " dep:mushroom-verify" , " dep:tokio" , " dep:tracing-subscriber" , " dep:vcek-kds" ]
1216
1317[dependencies ]
1418anyhow = " 1.0.81"
1519bit_field = " 0.10.2"
16- bitflags = " 2.4.2"
20+ bitflags = { version = " 2.4.2" , features = [ " bytemuck " ] }
1721bytemuck = { version = " 1.15.0" , features = [" derive" , " min_const_generics" , " extern_crate_std" ] }
1822clap = { version = " 4.5.2" , features = [" derive" , " env" ], optional = true }
1923constants = { workspace = true }
20- libc = " 0.2.153"
21- loader = { workspace = true }
24+ loader = { workspace = true , optional = true }
2225log-types = { workspace = true , features = [" std" ] }
2326mushroom-verify = { workspace = true , optional = true }
2427nix = { version = " 0.28.0" , features = [" fs" , " ioctl" , " mman" , " pthread" , " signal" ] }
2528profiler-types = { workspace = true }
26- qgs-client = { workspace = true }
29+ qgs-client = { workspace = true , optional = true }
2730rand = " 0.8.5"
28- snp-types = { workspace = true }
29- supervisor-services = { workspace = true , features = [" supervisor" ], default-features = false }
30- tdx-types = { workspace = true }
31- tokio = { version = " 1.36.0" , features = [" fs" , " macros" , " rt-multi-thread" ] }
31+ snp-types = { workspace = true , optional = true }
32+ supervisor-services = { workspace = true , features = [" supervisor" ], default-features = false , optional = true }
33+ tdx-types = { workspace = true , optional = true }
34+ tokio = { version = " 1.36.0" , features = [" fs" , " macros" , " rt-multi-thread" ], optional = true }
3235tracing = " 0.1.40"
33- tracing-subscriber = " 0.3.18"
34- vcek-kds = { workspace = true }
36+ tracing-subscriber = { version = " 0.3.18" , optional = true }
37+ vcek-kds = { workspace = true , optional = true }
3538volatile = { version = " 0.5.1" , features = [" unstable" ] }
3639x86_64 = " 0.15.1"
0 commit comments