aboutsummaryrefslogtreecommitdiff
path: root/swap/Cargo.toml
blob: 3833a6e69c431f0d2c378f0e79a7c3a223af68b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[package]
name = "swap"
version = "0.1.0"
authors = ["The ChromiumOS Authors"]
edition = "2021"

# The process tests will use fork, which requires a custom test harness to enforce single threaded
# execution.
[[test]]
name = "main"
path = "tests/main.rs"
harness = false


[features]
trace_marker = ["cros_tracing/trace_marker"]
enable = ["userfaultfd", "userfaultfd-sys"]

[dependencies]
anyhow = "*"
base = { path = "../base" }
cfg-if = "*"
cros_tracing = { path = "../cros_tracing" }
jail = { path = "../jail" }
num_cpus = "*"
once_cell = "*"
remain = "*"
serde = { version = "1", features = ["derive"] }
serde_json = "*"
sync = { path = "../common/sync" }               # provided by ebuild
thiserror = "*"
vm_memory = { path = "../vm_memory" }

[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies]
libc = "*"

[target.'cfg(target_os="linux")'.dependencies]
userfaultfd = { version = "0.8.1", optional = true }
userfaultfd-sys = { version = "0.5.0", optional = true }

[dev_dependencies]
libtest-mimic = "0.6"
tempfile = "*"