mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
build: add missing dependency features
This makes it possible to run cargo test just for the virtio-devices crate (as long as either KVM or MSHV is specified). Signed-off-by: Alyssa Ross <hi@alyssa.is>
This commit is contained in:
committed by
Rob Bradford
parent
a5cd1b4fbe
commit
01aed9733c
@@ -6,8 +6,8 @@ version = "0.1.0"
|
|||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
kvm = ["vfio-ioctls/kvm"]
|
kvm = ["hypervisor/kvm", "vfio-ioctls/kvm"]
|
||||||
mshv = ["vfio-ioctls/mshv"]
|
mshv = ["hypervisor/mshv", "vfio-ioctls/mshv"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow = "1.0.94"
|
anyhow = "1.0.94"
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ version = "0.1.0"
|
|||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
|
kvm = ["pci/kvm"]
|
||||||
|
mshv = ["pci/mshv"]
|
||||||
sev_snp = ["mshv-ioctls"]
|
sev_snp = ["mshv-ioctls"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|||||||
@@ -16,9 +16,16 @@ kvm = [
|
|||||||
"hypervisor/kvm",
|
"hypervisor/kvm",
|
||||||
"pci/kvm",
|
"pci/kvm",
|
||||||
"vfio-ioctls/kvm",
|
"vfio-ioctls/kvm",
|
||||||
|
"virtio-devices/kvm",
|
||||||
"vm-device/kvm",
|
"vm-device/kvm",
|
||||||
]
|
]
|
||||||
mshv = ["hypervisor/mshv", "pci/mshv", "vfio-ioctls/mshv", "vm-device/mshv"]
|
mshv = [
|
||||||
|
"hypervisor/mshv",
|
||||||
|
"pci/mshv",
|
||||||
|
"vfio-ioctls/mshv",
|
||||||
|
"virtio-devices/mshv",
|
||||||
|
"vm-device/mshv",
|
||||||
|
]
|
||||||
pvmemcontrol = ["devices/pvmemcontrol"]
|
pvmemcontrol = ["devices/pvmemcontrol"]
|
||||||
sev_snp = ["arch/sev_snp", "hypervisor/sev_snp", "virtio-devices/sev_snp"]
|
sev_snp = ["arch/sev_snp", "hypervisor/sev_snp", "virtio-devices/sev_snp"]
|
||||||
tdx = ["arch/tdx", "hypervisor/tdx"]
|
tdx = ["arch/tdx", "hypervisor/tdx"]
|
||||||
|
|||||||
Reference in New Issue
Block a user