# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "virtio-spec" version = "0.2.0" authors = ["Martin Kröning "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Definitions from the Virtual I/O Device (VIRTIO) specification." readme = "README.md" keywords = [ "virtio", "specification", "driver", "net", "pci", ] categories = [ "external-ffi-bindings", "no-std::no-alloc", ] license = "MIT OR Apache-2.0" repository = "https://github.com/rust-osdev/virtio-spec-rs" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "virtio_spec" path = "src/lib.rs" [dependencies.allocator-api2] version = "0.2" features = ["alloc"] optional = true default-features = false [dependencies.bitfield-struct] version = "0.9" [dependencies.bitflags] version = "2" [dependencies.endian-num] version = "0.2" features = [ "bitflags", "linux-types", ] [dependencies.num_enum] version = "0.7" default-features = false [dependencies.pci_types] version = "0.10" optional = true [dependencies.volatile] version = "0.6" [dependencies.volatile-macro] version = "0.6" [dependencies.zerocopy] version = "0.8" optional = true default-features = false [dependencies.zerocopy-derive] version = "0.8" optional = true [features] alloc = ["dep:allocator-api2"] mmio = [] nightly = ["allocator-api2/nightly"] pci = ["dep:pci_types"] zerocopy = [ "dep:zerocopy", "dep:zerocopy-derive", "endian-num/zerocopy", ]