• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2#
3# When uploading crates to the registry Cargo will automatically
4# "normalize" Cargo.toml files for maximal compatibility
5# with all versions of Cargo and also rewrite `path` dependencies
6# to registry (e.g., crates.io) dependencies.
7#
8# If you are reading this file be aware that the original Cargo.toml
9# will likely look very different (and much more reasonable).
10# See Cargo.toml.orig for the original contents.
11
12[package]
13edition = "2021"
14name = "vm-memory"
15version = "0.16.1"
16authors = ["Liu Jiang <gerry@linux.alibaba.com>"]
17build = false
18autobins = false
19autoexamples = false
20autotests = false
21autobenches = false
22description = "Safe abstractions for accessing the VM physical memory"
23readme = "README.md"
24keywords = ["memory"]
25categories = ["memory-management"]
26license = "Apache-2.0 OR BSD-3-Clause"
27repository = "https://github.com/rust-vmm/vm-memory"
28
29[package.metadata.docs.rs]
30all-features = true
31rustdoc-args = [
32    "--cfg",
33    "docsrs",
34]
35
36[profile.bench]
37lto = true
38codegen-units = 1
39
40[lib]
41name = "vm_memory"
42path = "src/lib.rs"
43
44[[bench]]
45name = "main"
46path = "benches/main.rs"
47harness = false
48
49[dependencies.arc-swap]
50version = "1.0.0"
51optional = true
52
53[dependencies.bitflags]
54version = "2.4.0"
55optional = true
56
57[dependencies.libc]
58version = "0.2.39"
59
60[dependencies.thiserror]
61version = "1.0.40"
62
63[dependencies.vmm-sys-util]
64version = "0.12.1"
65optional = true
66
67[dev-dependencies.criterion]
68version = "0.5.0"
69
70[dev-dependencies.matches]
71version = "0.1.0"
72
73[dev-dependencies.vmm-sys-util]
74version = "0.12.1"
75
76[features]
77backend-atomic = ["arc-swap"]
78backend-bitmap = []
79backend-mmap = []
80default = []
81xen = [
82    "backend-mmap",
83    "bitflags",
84    "vmm-sys-util",
85]
86
87[target."cfg(windows)".dependencies.winapi]
88version = "0.3"
89features = [
90    "errhandlingapi",
91    "sysinfoapi",
92]
93