vhost_user_net, vhost_user_block, option_parser: Remove vmm dependency

Remove the vmm dependency from vhost_user_block and vhost_user_net where
it was existing to use config::OptionParser. By moving the OptionParser
to its own crate at the top-level we can remove the very heavy
dependency that these vhost-user backends had.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2020-07-06 16:41:45 +01:00
parent 90261bb9c7
commit b69f6d4f6c
11 changed files with 192 additions and 172 deletions

9
Cargo.lock generated
View File

@@ -676,6 +676,10 @@ dependencies = [
"vcpkg",
]
[[package]]
name = "option_parser"
version = "0.1.0"
[[package]]
name = "parking_lot"
version = "0.10.2"
@@ -1433,13 +1437,13 @@ dependencies = [
"epoll",
"libc",
"log 0.4.8",
"option_parser",
"qcow",
"vhost",
"vhost_user_backend",
"virtio-bindings",
"virtio-devices",
"vm-memory",
"vmm",
"vmm-sys-util",
]
@@ -1473,12 +1477,12 @@ dependencies = [
"libc",
"log 0.4.8",
"net_util",
"option_parser",
"vhost",
"vhost_user_backend",
"virtio-bindings",
"virtio-devices",
"vm-memory",
"vmm",
"vmm-sys-util",
]
@@ -1591,6 +1595,7 @@ dependencies = [
"log 0.4.8",
"micro_http",
"net_util",
"option_parser",
"pci",
"qcow",
"seccomp",