[package]
edition = "2021"
name = "vhost"
version = "0.16.0"
authors = ["Liu Jiang <gerry@linux.alibaba.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "a pure rust library for vdpa, vhost and vhost-user"
documentation = "https://docs.rs/vhost"
readme = "README.md"
keywords = [
"vhost",
"vhost-user",
"virtio",
"vdpa",
]
license = "Apache-2.0 OR BSD-3-Clause"
repository = "https://github.com/rust-vmm/vhost"
[package.metadata.docs.rs]
all-features = true
rustc-args = ["--cfg RUSTDOC_disable_feature_compat_errors"]
[package.metadata.cargo-all-features]
skip_feature_sets = [[
"xen",
"postcopy",
]]
denylist = ["test_utils"]
[features]
default = []
postcopy = []
test-utils = []
vhost-kern = []
vhost-net = ["vhost-kern"]
vhost-user = []
vhost-user-backend = ["vhost-user"]
vhost-user-frontend = ["vhost-user"]
vhost-vdpa = ["vhost-kern"]
vhost-vsock = []
xen = ["vm-memory/xen"]
[lib]
name = "vhost"
path = "src/lib.rs"
[dependencies.bitflags]
version = "2.4"
[dependencies.libc]
version = "0.2.39"
[dependencies.uuid]
version = "1.11.0"
features = [
"v4",
"fast-rng",
]
[dependencies.vm-memory]
version = "=0.17.1"
features = ["backend-mmap"]
[dependencies.vmm-sys-util]
version = "0.15.0"
[dev-dependencies.serial_test]
version = "3.0"
[dev-dependencies.tempfile]
version = "3.2.0"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(RUSTDOC_disable_feature_compat_errors)"]