virtio-spec 0.4.0

Definitions from the Virtual I/O Device (VIRTIO) specification.
Documentation
# 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 = "2024"
name = "virtio-spec"
version = "0.4.0"
build = false
autolib = 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",
]

[features]
alloc = ["dep:allocator-api2"]
mmio = []
nightly = []
pci = ["dep:pci_types"]
zerocopy = [
    "dep:zerocopy",
    "dep:zerocopy-derive",
    "endian-num/zerocopy",
]

[lib]
name = "virtio_spec"
path = "src/lib.rs"

[dependencies.allocator-api2]
version = "0.4"
features = ["alloc"]
optional = true
default-features = false

[dependencies.bitfield-struct]
version = "0.13"

[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

[lints.rust]
rust_2018_idioms = "warn"