Cargo Features

virtio-spec has no features set by default.

[dependencies]
virtio-spec = { version = "0.2.0", features = ["alloc", "mmio", "nightly", "pci", "zerocopy"] }
alloc

Enables allocator-api2

mmio

Affects virtio-spec::mmio

nightly

Enables nightly of allocator-api2

pci

Enables pci_types

Affects virtio-spec::pci

zerocopy

Enables zerocopy and zerocopy-derive, zerocopy of endian-num