mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-21 23:41:15 +00:00
Add a build-script to propagate the git commit hash to other crates at compile time through environment variables, and display the hash along with the '--version' option. Fixes #729 Signed-off-by: Bo Chen <chen.bo@intel.com>
70 lines
1.4 KiB
TOML
70 lines
1.4 KiB
TOML
[package]
|
|
name = "cloud-hypervisor"
|
|
version = "0.5.0"
|
|
authors = ["The Cloud Hypervisor Authors"]
|
|
edition = "2018"
|
|
default-run = "cloud-hypervisor"
|
|
build = "build.rs"
|
|
|
|
[dependencies]
|
|
arc-swap = ">=0.4.4"
|
|
clap = "2.33.0"
|
|
epoll = ">=4.0.1"
|
|
lazy_static = "1.4.0"
|
|
libc = "0.2.66"
|
|
log = { version = "0.4.10", features = ["std"] }
|
|
vhost_user_backend = { path = "vhost_user_backend"}
|
|
vhost_user_block = { path = "vhost_user_block"}
|
|
vhost_user_fs = { path = "vhost_user_fs"}
|
|
vhost_user_net = { path = "vhost_user_net"}
|
|
virtio-bindings = "0.1.0"
|
|
vmm = { path = "vmm" }
|
|
vm-device = { path = "vm-device" }
|
|
vm-memory = { git = "https://github.com/rust-vmm/vm-memory" }
|
|
vmm-sys-util = ">=0.3.1"
|
|
vm-virtio = { path = "vm-virtio" }
|
|
|
|
[dev-dependencies]
|
|
ssh2 = "0.7.1"
|
|
dirs = "2.0.2"
|
|
credibility = "0.1.3"
|
|
tempdir= "0.3.7"
|
|
lazy_static= "1.4.0"
|
|
serde_json = ">=1.0.9"
|
|
|
|
[dependencies.vhost_rs]
|
|
path = "vhost_rs"
|
|
features = ["vhost-user-slave"]
|
|
|
|
[features]
|
|
default = ["acpi", "pci", "cmos"]
|
|
acpi = ["vmm/acpi"]
|
|
pci = ["vmm/pci_support"]
|
|
mmio = ["vmm/mmio_support"]
|
|
cmos = ["vmm/cmos"]
|
|
|
|
# Integration tests require a special environment to run in
|
|
integration_tests = []
|
|
|
|
[workspace]
|
|
members = [
|
|
"arch",
|
|
"devices",
|
|
"vhost_rs",
|
|
"qcow",
|
|
"pci",
|
|
"vmm",
|
|
"vm-virtio",
|
|
"vm-device",
|
|
"vhost_user_block",
|
|
"vhost_user_backend",
|
|
"vhost_user_fs",
|
|
"vhost_user_net",
|
|
"vfio",
|
|
"net_util",
|
|
"acpi_tables",
|
|
"arch_gen",
|
|
"net_gen",
|
|
"vm-allocator",
|
|
]
|