blob: cd63941bbdd3393c2dc11d6c71e38d505e6465e2 [file] [log] [blame]
[package]
name = "vm-memory"
version = "0.12.2"
description = "Safe abstractions for accessing the VM physical memory"
keywords = ["memory"]
categories = ["memory-management"]
authors = ["Liu Jiang <gerry@linux.alibaba.com>"]
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 = "1.0", optional = true }
thiserror = "1.0.40"
vmm-sys-util = { version = "0.11.0", optional = true }
[target.'cfg(windows)'.dependencies.winapi]
version = "0.3"
features = ["errhandlingapi", "sysinfoapi"]
[dev-dependencies]
criterion = "0.3.0"
matches = "0.1.0"
vmm-sys-util = "0.11.0"
[[bench]]
name = "main"
harness = false
[profile.bench]
lto = true
codegen-units = 1
[package.metadata.docs.rs]
all-features = true