msb-vm-memory 0.18.0-msb.1

Safe abstractions for accessing the VM physical memory
Documentation
# 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 = "msb-vm-memory"
version = "0.18.0-msb.1"
authors = ["Liu Jiang <gerry@linux.alibaba.com>"]
build = false
autolib = 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/superradcompany/rust-vmm"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[package.metadata.cargo-all-features]
skip_optional_dependencies = true

[features]
backend-atomic = ["arc-swap"]
backend-bitmap = [
    "dep:libc",
    "dep:winapi",
]
backend-mmap = [
    "dep:libc",
    "dep:winapi",
]
default = ["rawfd"]
iommu = ["dep:rangemap"]
rawfd = ["dep:libc"]
xen = [
    "backend-mmap",
    "bitflags",
    "vmm-sys-util",
]

[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"
optional = true

[dependencies.rangemap]
version = "1.5.1"
optional = true

[dependencies.thiserror]
version = "2.0.16"

[dependencies.vmm-sys-util]
version = ">=0.12.1, <=0.15.0"
optional = true

[dev-dependencies.criterion]
version = "0.8.2"

[dev-dependencies.matches]
version = "0.1.0"

[dev-dependencies.vmm-sys-util]
version = "0.15.0"

[target.'cfg(target_family = "windows")'.dependencies.winapi]
version = "0.3"
features = [
    "errhandlingapi",
    "libloaderapi",
    "processthreadsapi",
    "sysinfoapi",
]
optional = true