xref: /cloud-hypervisor/hypervisor/Cargo.toml (revision 72452707eeb4dc17439d609e194b8de108ad623b)
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.94"
16arc-swap = "1.7.1"
17byteorder = "1.5.0"
18cfg-if = "1.0.0"
19concat-idents = "1.1.5"
20igvm = { version = "0.3.3", optional = true }
21igvm_defs = { version = "0.3.1", optional = true }
22kvm-bindings = { workspace = true, optional = true, features = ["serde"] }
23kvm-ioctls = { workspace = true, optional = true }
24libc = "0.2.167"
25log = "0.4.22"
26mshv-bindings = { workspace = true, features = [
27  "fam-wrappers",
28  "with-serde",
29], optional = true }
30mshv-ioctls = { workspace = true, optional = true }
31serde = { version = "1.0.208", features = ["derive", "rc"] }
32serde_with = { version = "3.9.0", default-features = false, features = [
33  "macros",
34] }
35thiserror = "1.0.62"
36vfio-ioctls = { workspace = true, default-features = false }
37vm-memory = { workspace = true, features = [
38  "backend-atomic",
39  "backend-bitmap",
40  "backend-mmap",
41] }
42vmm-sys-util = { workspace = true, features = ["with-serde"] }
43
44[target.'cfg(target_arch = "x86_64")'.dependencies.iced-x86]
45default-features = false
46features = ["decoder", "fast_fmt", "instr_info", "op_code_info", "std"]
47optional = true
48version = "1.21.0"
49
50[dev-dependencies]
51env_logger = "0.11.3"
52