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.86" 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 = { version = "0.8.1", optional = true, features = ["serde"] } 22kvm-ioctls = { version = "0.17.0", optional = true } 23libc = "0.2.155" 24log = "0.4.22" 25mshv-bindings = { git = "https://github.com/rust-vmm/mshv", tag = "v0.2.0", features = [ 26 "fam-wrappers", 27 "with-serde", 28], optional = true } 29mshv-ioctls = { git = "https://github.com/rust-vmm/mshv", tag = "v0.2.0", 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 = { git = "https://github.com/rust-vmm/vfio", branch = "main", default-features = false } 36vm-memory = { version = "0.14.1", features = [ 37 "backend-atomic", 38 "backend-mmap", 39] } 40vmm-sys-util = { version = "0.12.1", features = ["with-serde"] } 41 42[target.'cfg(target_arch = "x86_64")'.dependencies.iced-x86] 43default-features = false 44features = ["decoder", "fast_fmt", "instr_info", "op_code_info", "std"] 45optional = true 46version = "1.21.0" 47 48[dev-dependencies] 49env_logger = "0.11.3" 50