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-02-15 06:08:48 +00:00
|
|
|
log_page_fault = []
|
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]
|
2022-10-03 07:53:15 +00:00
|
|
|
anyhow = "*"
|
2022-09-14 05:18:14 +00:00
|
|
|
base = { path = "../base" }
|
2023-04-28 06:09:25 +00:00
|
|
|
cfg-if = "*"
|
2022-12-05 06:27:06 +00:00
|
|
|
cros_tracing = { path = "../cros_tracing" }
|
2022-12-06 20:38:11 +00:00
|
|
|
data_model = { path = "../common/data_model" }
|
2023-11-08 19:29:14 +00:00
|
|
|
jail = { path = "../jail" }
|
2023-01-06 09:35:25 +00:00
|
|
|
num_cpus = "*"
|
2022-12-26 04:18:33 +00:00
|
|
|
once_cell = "*"
|
2022-09-02 15:49:50 +00:00
|
|
|
remain = "*"
|
2023-11-08 19:29:14 +00:00
|
|
|
serde = { version = "1", features = ["derive"] }
|
2022-10-14 08:06:52 +00:00
|
|
|
serde_json = "*"
|
2023-11-08 19:29:14 +00:00
|
|
|
sync = { path = "../common/sync" } # provided by ebuild
|
2022-09-30 15:36:52 +00:00
|
|
|
thiserror = "*"
|
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]
|
2023-04-28 06:09:25 +00:00
|
|
|
libc = "*"
|
|
|
|
|
|
|
|
[target.'cfg(target_os="linux")'.dependencies]
|
2023-11-08 19:29:14 +00:00
|
|
|
userfaultfd = { version = "0.7.0", optional = true }
|
|
|
|
userfaultfd-sys = { version = "0.5.0", optional = true }
|
2023-04-28 06:09:25 +00:00
|
|
|
|
2023-02-28 19:01:18 +00:00
|
|
|
[dev_dependencies]
|
|
|
|
libtest-mimic = "0.6"
|
2023-04-28 06:09:25 +00:00
|
|
|
tempfile = "*"
|