Convert to a workspace

Convert the vhost git repository into a crate, which hosts vhost crate
for now. Support for vhost-user-backend and other crates will be added
later on.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
This commit is contained in:
Viresh Kumar 2022-08-17 14:36:38 +05:30
parent f87156b776
commit d4c021dea3
27 changed files with 50 additions and 37 deletions

View file

@ -1,36 +1,5 @@
[package]
name = "vhost"
version = "0.5.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"
[workspace]
[package.metadata.docs.rs]
all-features = true
[features]
default = []
vhost-vsock = []
vhost-kern = []
vhost-vdpa = ["vhost-kern"]
vhost-net = ["vhost-kern"]
vhost-user = []
vhost-user-master = ["vhost-user"]
vhost-user-slave = ["vhost-user"]
[dependencies]
bitflags = "1.0"
libc = "0.2.39"
vmm-sys-util = "0.10.0"
vm-memory = "0.9.0"
[dev-dependencies]
tempfile = "3.2.0"
vm-memory = { version = "0.9.0", features=["backend-mmap"] }
serial_test = "0.5"
members = [
"crates/vhost",
]

View file

@ -1 +1,5 @@
{"coverage_score": 39.8, "exclude_path": "", "crate_features": "vhost-vsock,vhost-kern,vhost-user-master,vhost-user-slave"}
{
"coverage_score": 39.8,
"exclude_path": "",
"crate_features": "vhost/vhost-vsock,vhost/vhost-kern,vhost/vhost-user-master,vhost/vhost-user-slave"
}

View file

@ -1 +1,5 @@
{"coverage_score": 80.5, "exclude_path": "src/vhost_kern/", "crate_features": "vhost-user-master,vhost-user-slave"}
{
"coverage_score": 80.5,
"exclude_path": "vhost/src/vhost_kern/",
"crate_features": "vhost/vhost-user-master,vhost/vhost-user-slave"
}

36
crates/vhost/Cargo.toml Normal file
View file

@ -0,0 +1,36 @@
[package]
name = "vhost"
version = "0.5.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"
[package.metadata.docs.rs]
all-features = true
[features]
default = []
vhost-vsock = []
vhost-kern = []
vhost-vdpa = ["vhost-kern"]
vhost-net = ["vhost-kern"]
vhost-user = []
vhost-user-master = ["vhost-user"]
vhost-user-slave = ["vhost-user"]
[dependencies]
bitflags = "1.0"
libc = "0.2.39"
vmm-sys-util = "0.10.0"
vm-memory = "0.9.0"
[dev-dependencies]
tempfile = "3.2.0"
vm-memory = { version = "0.9.0", features=["backend-mmap"] }
serial_test = "0.5"

View file

Before

Width:  |  Height:  |  Size: 143 KiB

After

Width:  |  Height:  |  Size: 143 KiB

Before After
Before After