mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
Implement DataInit for message structs and use `.as_slice()` when sending them. This change makes `trait Req` require `Send + Sync`. This is needed to implement `DataInit` for `VhostUserMsgHeader<R> where `R: Req`. BUG=b:204720423 TEST=cargo test --all-features Change-Id: Icd32861b8d4fef16606a35b387c35271aebe061a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3268265 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
32 lines
818 B
TOML
32 lines
818 B
TOML
[package]
|
|
name = "vmm_vhost"
|
|
version = "0.1.0"
|
|
keywords = ["vhost", "vhost-user", "virtio", "vdpa"]
|
|
description = "a pure rust library for vdpa, vhost and vhost-user"
|
|
authors = ["Liu Jiang <gerry@linux.alibaba.com>"]
|
|
repository = "https://github.com/rust-vmm/vhost"
|
|
documentation = "https://docs.rs/vhost"
|
|
readme = "README.md"
|
|
license = "Apache-2.0 or BSD-3-Clause"
|
|
edition = "2018"
|
|
|
|
[features]
|
|
default = []
|
|
vhost-vsock = []
|
|
vhost-kern = ["vm-memory"]
|
|
vhost-user = []
|
|
vhost-user-master = ["vhost-user"]
|
|
vhost-user-slave = ["vhost-user"]
|
|
|
|
[dependencies]
|
|
bitflags = ">=1.0.1"
|
|
data_model= "*"
|
|
libc = ">=0.2.39"
|
|
remain = "*"
|
|
sys_util = "*"
|
|
tempfile = "*"
|
|
thiserror = { version = "1.0.20" }
|
|
vm-memory = { version = "0.2.0", optional = true }
|
|
|
|
[dev-dependencies]
|
|
vm-memory = { version = "0.2.0", features=["backend-mmap"] }
|