2022-09-14 05:18:14 +00:00
|
|
|
[package]
|
|
|
|
name = "swap"
|
|
|
|
version = "0.1.0"
|
2022-12-29 21:24:33 +00:00
|
|
|
authors = ["The ChromiumOS Authors"]
|
2022-09-14 05:18:14 +00:00
|
|
|
edition = "2021"
|
|
|
|
|
2023-02-28 19:01:18 +00:00
|
|
|
# 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
|
|
|
|
|
|
|
|
|
2022-12-05 06:27:06 +00:00
|
|
|
[features]
|
|
|
|
trace_marker = ["cros_tracing/trace_marker"]
|
2023-04-28 06:09:25 +00:00
|
|
|
enable = ["userfaultfd", "userfaultfd-sys"]
|
2022-12-05 06:27:06 +00:00
|
|
|
|
2023-04-28 06:09:25 +00:00
|
|
|
[dependencies]
|
2024-05-21 22:37:42 +00:00
|
|
|
anyhow = "1"
|
2022-09-14 05:18:14 +00:00
|
|
|
base = { path = "../base" }
|
2024-05-21 22:37:42 +00:00
|
|
|
cfg-if = "1"
|
2022-12-05 06:27:06 +00:00
|
|
|
cros_tracing = { path = "../cros_tracing" }
|
2023-11-08 19:29:14 +00:00
|
|
|
jail = { path = "../jail" }
|
2024-03-27 08:30:38 +00:00
|
|
|
metrics = { path = "../metrics" }
|
2024-05-21 22:37:42 +00:00
|
|
|
num_cpus = "1"
|
|
|
|
once_cell = "1.7"
|
|
|
|
remain = "0.2"
|
2023-11-08 19:29:14 +00:00
|
|
|
serde = { version = "1", features = ["derive"] }
|
2024-05-21 22:37:42 +00:00
|
|
|
serde_json = "1"
|
2023-11-08 19:29:14 +00:00
|
|
|
sync = { path = "../common/sync" } # provided by ebuild
|
2024-05-21 22:37:42 +00:00
|
|
|
thiserror = "1"
|
2023-11-08 19:29:14 +00:00
|
|
|
vm_memory = { path = "../vm_memory" }
|
2023-02-28 19:01:18 +00:00
|
|
|
|
2023-10-03 01:33:00 +00:00
|
|
|
[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies]
|
2024-05-21 22:37:42 +00:00
|
|
|
libc = "0.2"
|
2023-04-28 06:09:25 +00:00
|
|
|
|
|
|
|
[target.'cfg(target_os="linux")'.dependencies]
|
2024-01-15 04:24:22 +00:00
|
|
|
userfaultfd = { version = "0.8.1", optional = true }
|
2023-11-08 19:29:14 +00:00
|
|
|
userfaultfd-sys = { version = "0.5.0", optional = true }
|
2023-04-28 06:09:25 +00:00
|
|
|
|
2024-05-07 19:34:48 +00:00
|
|
|
[dev-dependencies]
|
2023-02-28 19:01:18 +00:00
|
|
|
libtest-mimic = "0.6"
|
2024-05-21 22:37:42 +00:00
|
|
|
tempfile = "3"
|