# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "vm-memory" version = "0.16.1" authors = ["Liu Jiang "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Safe abstractions for accessing the VM physical memory" readme = "README.md" keywords = ["memory"] categories = ["memory-management"] license = "Apache-2.0 OR BSD-3-Clause" repository = "https://github.com/rust-vmm/vm-memory" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [profile.bench] lto = true codegen-units = 1 [lib] name = "vm_memory" path = "src/lib.rs" [[bench]] name = "main" path = "benches/main.rs" harness = false [dependencies.arc-swap] version = "1.0.0" optional = true [dependencies.bitflags] version = "2.4.0" optional = true [dependencies.libc] version = "0.2.39" [dependencies.thiserror] version = "1.0.40" [dependencies.vmm-sys-util] version = "0.12.1" optional = true [dev-dependencies.criterion] version = "0.5.0" [dev-dependencies.matches] version = "0.1.0" [dev-dependencies.vmm-sys-util] version = "0.12.1" [features] backend-atomic = ["arc-swap"] backend-bitmap = [] backend-mmap = [] default = [] xen = [ "backend-mmap", "bitflags", "vmm-sys-util", ] [target."cfg(windows)".dependencies.winapi] version = "0.3" features = [ "errhandlingapi", "sysinfoapi", ]