xref: /cloud-hypervisor/hypervisor/Cargo.toml (revision eb0b14f70ed5ed44b76579145fd2a741c0100ae4)
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 = ["mshv-bindings", "mshv-ioctls", "mshv_emulator", "vfio-ioctls/mshv"]
11mshv_emulator = ["iced-x86", "mshv-bindings"]
12sev_snp = ["igvm", "igvm_defs"]
13tdx = []
14
15[dependencies]
16anyhow = "1.0.94"
17arc-swap = "1.7.1"
18bitfield-struct = "0.10.1"
19byteorder = "1.5.0"
20cfg-if = "1.0.0"
21concat-idents = "1.1.5"
22igvm = { workspace = true, optional = true }
23igvm_defs = { workspace = true, optional = true }
24kvm-bindings = { workspace = true, optional = true, features = ["serde"] }
25kvm-ioctls = { workspace = true, optional = true }
26libc = "0.2.167"
27log = "0.4.22"
28mshv-bindings = { workspace = true, features = [
29  "fam-wrappers",
30  "with-serde",
31], optional = true }
32mshv-ioctls = { workspace = true, optional = true }
33open-enum = "0.5.2"
34serde = { version = "1.0.208", features = ["derive", "rc"] }
35serde_json = { workspace = true }
36serde_with = { version = "3.9.0", default-features = false, features = [
37  "macros",
38] }
39thiserror = "2.0.6"
40vfio-ioctls = { workspace = true, default-features = false }
41vm-memory = { workspace = true, features = [
42  "backend-atomic",
43  "backend-bitmap",
44  "backend-mmap",
45] }
46vmm-sys-util = { workspace = true, features = ["with-serde"] }
47zerocopy = { version = "0.8.24", features = ["derive"] }
48
49[target.'cfg(target_arch = "x86_64")'.dependencies.iced-x86]
50default-features = false
51features = [
52  "decoder",
53  "instr_info",
54  "no_d3now",
55  "no_evex",
56  "no_vex",
57  "no_xop",
58  "op_code_info",
59  "std",
60]
61optional = true
62version = "1.21.0"
63
64[dev-dependencies]
65env_logger = "0.11.3"
66