runtime-rs: Refactor feature propagation

After runtime-rs workspace merged into root workspace, features passed
when building runtime-rs needs to be refactored to be correctly
propagated. Taking dragonball for example, runtime-rs requires runtimes
to depend on virt_conttainers feature, and virt_containers needs to
handle hypervisor features specifically.

Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
This commit is contained in:
Ruoqing He
2025-12-15 14:27:46 +00:00
committed by Fabiano Fidêncio
parent 1872af7c5a
commit 6d2c66c7eb
2 changed files with 4 additions and 4 deletions

View File

@@ -57,5 +57,5 @@ linux = ["linux_container"]
virt = ["virt_container"]
wasm = ["wasm_container"]
dragonball = []
cloud-hypervisor = []
dragonball = ["virt_container/dragonball"]
cloud-hypervisor = ["virt_container/cloud-hypervisor"]

View File

@@ -44,7 +44,7 @@ resource = { workspace = true }
default = ["cloud-hypervisor"]
# Enable the Cloud Hypervisor driver
cloud-hypervisor = []
cloud-hypervisor = ["hypervisor/cloud-hypervisor"]
# Enable the build-in VMM Dragtonball
dragonball = []
dragonball = ["hypervisor/dragonball"]