• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[package]
2name = "swap"
3version = "0.1.0"
4authors = ["The ChromiumOS Authors"]
5edition = "2021"
6
7# The process tests will use fork, which requires a custom test harness to enforce single threaded
8# execution.
9[[test]]
10name = "main"
11path = "tests/main.rs"
12harness = false
13
14
15[features]
16trace_marker = ["cros_tracing/trace_marker"]
17enable = ["userfaultfd", "userfaultfd-sys"]
18
19[dependencies]
20anyhow = "1"
21base = { path = "../base" }
22cfg-if = "1"
23cros_tracing = { path = "../cros_tracing" }
24jail = { path = "../jail" }
25metrics = { path = "../metrics" }
26num_cpus = "1"
27once_cell = "1.7"
28remain = "0.2"
29serde = { version = "1", features = ["derive"] }
30serde_json = "1"
31sync = { path = "../common/sync" }               # provided by ebuild
32thiserror = "1"
33vm_memory = { path = "../vm_memory" }
34
35[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies]
36libc = "0.2"
37
38[target.'cfg(target_os="linux")'.dependencies]
39userfaultfd = { version = "0.8.1", optional = true }
40userfaultfd-sys = { version = "0.5.0", optional = true }
41
42[dev-dependencies]
43libtest-mimic = "0.6"
44tempfile = "3"
45