Skip to content

Commit

Permalink
Merge pull request #346 from stefano-garzarella/fix-feature-unification
Browse files Browse the repository at this point in the history
igvm*: specify dependencies' target to avoid feature unification
  • Loading branch information
joergroedel authored May 23, 2024
2 parents 6b4deb4 + cd84c5f commit 48c8cf3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion igvmbuilder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
4 changes: 3 additions & 1 deletion igvmmeasure/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 48c8cf3

Please sign in to comment.