xref: /cloud-hypervisor/hypervisor/Cargo.toml (revision dec4a8205800e0f0763c94a6ad02ebee7e2351ab)
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.81"
16byteorder = "1.5.0"
17igvm = { version = "0.3.1", optional = true }
18igvm_defs = { version = "0.3.1", optional = true }
19kvm-bindings = { version = "0.8.1", optional = true, features = ["serde"] }
20kvm-ioctls = { version = "0.17.0", optional = true }
21libc = "0.2.153"
22log = "0.4.22"
23mshv-bindings = { git = "https://github.com/rust-vmm/mshv", tag = "v0.2.0", features = [
24  "fam-wrappers",
25  "with-serde",
26], optional = true }
27mshv-ioctls = { git = "https://github.com/rust-vmm/mshv", tag = "v0.2.0", optional = true }
28serde = { version = "1.0.197", features = ["derive", "rc"] }
29serde_with = { version = "3.7.0", default-features = false, features = [
30  "macros",
31] }
32thiserror = "1.0.60"
33vfio-ioctls = { git = "https://github.com/rust-vmm/vfio", branch = "main", default-features = false }
34vm-memory = { version = "0.14.1", features = [
35  "backend-atomic",
36  "backend-mmap",
37] }
38vmm-sys-util = { version = "0.12.1", features = ["with-serde"] }
39
40[target.'cfg(target_arch = "x86_64")'.dependencies.iced-x86]
41default-features = false
42features = ["decoder", "fast_fmt", "instr_info", "op_code_info", "std"]
43optional = true
44version = "1.21.0"
45
46[dev-dependencies]
47env_logger = "0.11.3"
48