diff --git a/igvmbuilder/Cargo.toml b/igvmbuilder/Cargo.toml index 3cc507db8..ff1c7897e 100644 --- a/igvmbuilder/Cargo.toml +++ b/igvmbuilder/Cargo.toml @@ -3,7 +3,9 @@ name = "igvmbuilder" version = "0.1.0" edition = "2021" -[dependencies] +# specify dependencies' target to avoid feature unification with SVSM +# see https://doc.rust-lang.org/cargo/reference/features.html#feature-unification +[target.'cfg(all(target_os = "linux"))'.dependencies] bootlib.workspace = true clap = { workspace = true, default-features = true, features = ["derive"] } diff --git a/igvmmeasure/Cargo.toml b/igvmmeasure/Cargo.toml index 5e2e23698..37c4ee737 100644 --- a/igvmmeasure/Cargo.toml +++ b/igvmmeasure/Cargo.toml @@ -3,7 +3,9 @@ name = "igvmmeasure" version = "0.1.0" edition = "2021" -[dependencies] +# specify dependencies' target to avoid feature unification with SVSM +# see https://doc.rust-lang.org/cargo/reference/features.html#feature-unification +[target.'cfg(all(target_os = "linux"))'.dependencies] clap = { workspace = true, default-features = true, features = ["derive"] } hmac-sha512.workspace = true igvm.workspace = true