[package] name = "vm-memory" version = "0.16.1" description = "Safe abstractions for accessing the VM physical memory" keywords = ["memory"] categories = ["memory-management"] authors = ["Liu Jiang "] repository = "https://github.com/rust-vmm/vm-memory" readme = "README.md" license = "Apache-2.0 OR BSD-3-Clause" edition = "2021" autobenches = false [features] default = [] backend-bitmap = [] backend-mmap = [] backend-atomic = ["arc-swap"] xen = ["backend-mmap", "bitflags", "vmm-sys-util"] [dependencies] libc = "0.2.39" arc-swap = { version = "1.0.0", optional = true } bitflags = { version = "2.4.0", optional = true } thiserror = "1.0.40" vmm-sys-util = { version = "0.12.1", optional = true } [target.'cfg(windows)'.dependencies.winapi] version = "0.3" features = ["errhandlingapi", "sysinfoapi"] [dev-dependencies] criterion = "0.5.0" matches = "0.1.0" vmm-sys-util = "0.12.1" [[bench]] name = "main" harness = false [profile.bench] lto = true codegen-units = 1 [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"]