1[package] 2name = "cloud-hypervisor" 3version = "22.0.0" 4authors = ["The Cloud Hypervisor Authors"] 5edition = "2021" 6default-run = "cloud-hypervisor" 7build = "build.rs" 8license = "LICENSE-APACHE & LICENSE-BSD-3-Clause" 9description = "Open source Virtual Machine Monitor (VMM) that runs on top of KVM" 10homepage = "https://github.com/cloud-hypervisor/cloud-hypervisor" 11# Minimum buildable version: 12# Keep in sync with version in .github/workflows/build.yaml 13rust-version = "1.56" 14 15[profile.release] 16lto = true 17 18[dependencies] 19anyhow = "1.0.56" 20api_client = { path = "api_client" } 21clap = { version = "3.1.8", features = ["wrap_help","cargo"] } 22epoll = "4.3.1" 23event_monitor = { path = "event_monitor" } 24hypervisor = { path = "hypervisor" } 25libc = "0.2.122" 26log = { version = "0.4.16", features = ["std"] } 27option_parser = { path = "option_parser" } 28seccompiler = "0.2.0" 29serde_json = "1.0.79" 30signal-hook = "0.3.13" 31thiserror = "1.0.30" 32vmm = { path = "vmm" } 33vmm-sys-util = "0.9.0" 34vm-memory = "0.7.0" 35 36[build-dependencies] 37clap = { version = "3.1.8", features = ["cargo"] } 38 39# List of patched crates 40[patch.crates-io] 41kvm-bindings = { git = "https://github.com/cloud-hypervisor/kvm-bindings", branch = "ch-v0.5.0-tdx" } 42kvm-ioctls = { git = "https://github.com/rust-vmm/kvm-ioctls", branch = "main" } 43versionize_derive = { git = "https://github.com/cloud-hypervisor/versionize_derive", branch = "ch" } 44 45[dev-dependencies] 46dirs = "4.0.0" 47lazy_static= "1.4.0" 48net_util = { path = "net_util" } 49serde_json = "1.0.79" 50test_infra = { path = "test_infra" } 51wait-timeout = "0.2.0" 52 53[features] 54default = ["common", "kvm"] 55# Common features for all hypervisors 56common = ["fwdebug"] 57amx = ["vmm/amx"] 58cmos = ["vmm/cmos"] 59fwdebug = ["vmm/fwdebug"] 60gdb = ["vmm/gdb"] 61kvm = ["vmm/kvm"] 62mshv = ["vmm/mshv"] 63tdx = ["vmm/tdx"] 64 65[workspace] 66members = [ 67 "acpi_tables", 68 "api_client", 69 "arch", 70 "block_util", 71 "devices", 72 "event_monitor", 73 "hypervisor", 74 "net_gen", 75 "net_util", 76 "option_parser", 77 "pci", 78 "performance-metrics", 79 "qcow", 80 "rate_limiter", 81 "test_infra", 82 "vfio_user", 83 "vhdx", 84 "vhost_user_block", 85 "vhost_user_net", 86 "virtio-devices", 87 "vmm", 88 "vm-allocator", 89 "vm-device", 90 "vm-migration", 91 "vm-virtio" 92] 93