Cargo Features

virtio-driver has no features set by default.

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

Enables fs of rustix ^0.37

vhost-vdpa = memmap2, virtio-bindings

Enables fs of rustix ^0.37

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?

Enables memmap2 <0.6

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