mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 04:26:38 +00:00
Since this is a binary, we don't need a detailed error enum. anyhow::Error + context should be enough. BUG=none TEST=`curl www.example.com` inside a vm with vhost-user-net still works Change-Id: I859761c167823425f1c7f7dfb2862a114dfdd254 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2894327 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Chirantan Ekbote <chirantan@chromium.org> Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
41 lines
989 B
TOML
41 lines
989 B
TOML
[package]
|
|
name = "vhost_user_devices"
|
|
version = "0.1.0"
|
|
authors = ["The Chromium OS Authors"]
|
|
edition = "2018"
|
|
|
|
[features]
|
|
net = ["data_model", "getopts", "net_util", "virtio_sys"]
|
|
|
|
[lib]
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "vhost-user-net-device"
|
|
path = "src/net.rs"
|
|
required-features = ["net"]
|
|
|
|
[dependencies]
|
|
anyhow = "*"
|
|
base = { path = "../base" }
|
|
cros_async = { path = "../cros_async" }
|
|
data_model = { path = "../data_model", optional = true }
|
|
devices = { path = "../devices" }
|
|
getopts = { version = "0.2", optional = true }
|
|
libc = "*"
|
|
net_util = { path = "../net_util", optional = true }
|
|
once_cell = "1.7.2"
|
|
remain = "*"
|
|
sync = { path = "../sync" }
|
|
thiserror = "*"
|
|
virtio_sys = { path = "../virtio_sys", optional = true }
|
|
vm_memory = { path = "../vm_memory" }
|
|
vmm_vhost = { version = "*", features = ["vhost-user-slave"] }
|
|
|
|
[dependencies.futures]
|
|
version = "*"
|
|
default-features = false
|
|
|
|
[dev-dependencies]
|
|
data_model = { path = "../data_model" }
|
|
tempfile = { path = "../tempfile" }
|