xref: /cloud-hypervisor/hypervisor/Cargo.toml (revision 5a70d7ec69836ad66cdd1e4ea59414dcdaaeec8c)
1[package]
2authors = ["Microsoft Authors"]
3edition = "2021"
4license = "Apache-2.0 OR BSD-3-Clause"
5name = "hypervisor"
6version = "0.1.0"
7
8[features]
9kvm = ["kvm-bindings", "kvm-ioctls", "vfio-ioctls/kvm"]
10mshv = ["iced-x86", "mshv-bindings", "mshv-ioctls", "vfio-ioctls/mshv"]
11sev_snp = ["igvm", "igvm_defs"]
12tdx = []
13
14[dependencies]
15anyhow = "1.0.87"
16byteorder = "1.5.0"
17cfg-if = "1.0.0"
18concat-idents = "1.1.5"
19igvm = { version = "0.3.3", optional = true }
20igvm_defs = { version = "0.3.1", optional = true }
21kvm-bindings = { workspace = true, optional = true, features = ["serde"] }
22kvm-ioctls = { workspace = true, optional = true }
23libc = "0.2.158"
24log = "0.4.22"
25mshv-bindings = { workspace = true, features = [
26  "fam-wrappers",
27  "with-serde",
28], optional = true }
29mshv-ioctls = { workspace = true, optional = true }
30serde = { version = "1.0.208", features = ["derive", "rc"] }
31serde_with = { version = "3.9.0", default-features = false, features = [
32  "macros",
33] }
34thiserror = "1.0.62"
35vfio-ioctls = { workspace = true, default-features = false }
36vm-memory = { workspace = true, features = ["backend-atomic", "backend-mmap"] }
37vmm-sys-util = { workspace = true, features = ["with-serde"] }
38
39[target.'cfg(target_arch = "x86_64")'.dependencies.iced-x86]
40default-features = false
41features = ["decoder", "fast_fmt", "instr_info", "op_code_info", "std"]
42optional = true
43version = "1.21.0"
44
45[dev-dependencies]
46env_logger = "0.11.3"
47