Cargo Features

virtio-driver has no features set by default.

[dependencies]
virtio-driver = { version = "0.6.1", features = ["pci", "vhost-user", "vhost-vdpa"] }
pci = pci-driver
vhost-user = memmap2

Enables fs of rustix

vhost-vdpa = memmap2, virtio-bindings

Enables fs of rustix

rustix:

Enable rustix::fs::*.

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

memmap2 vhost-user? vhost-vdpa?
pci-driver pci?
virtio-bindings vhost-vdpa?