crosvm/vhost_user_devices/Cargo.toml
Chirantan Ekbote e3d1a0278c vhost-user-net: Use anyhow
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>
2021-05-20 06:07:41 +00:00

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" }