mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 12:34:31 +00:00
24b4e58282
Specifically to uprev to userfaultfd-sys 0.5.0, which uses a newer version of bindgen that fixes an issue with the latest version of clang in debian. See: https://github.com/rust-lang/rust-bindgen/issues/2312 BUG=None TEST=presubmit Change-Id: I91e3d3bba17ca423be61db4d4fb6d97c53eb2780 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5014785 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Shin Kawamura <kawasin@google.com>
45 lines
1.1 KiB
TOML
45 lines
1.1 KiB
TOML
[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"]
|
|
log_page_fault = []
|
|
enable = ["userfaultfd", "userfaultfd-sys"]
|
|
|
|
[dependencies]
|
|
anyhow = "*"
|
|
base = { path = "../base" }
|
|
cfg-if = "*"
|
|
cros_tracing = { path = "../cros_tracing" }
|
|
data_model = { path = "../common/data_model" }
|
|
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.7.0", optional = true }
|
|
userfaultfd-sys = { version = "0.5.0", optional = true }
|
|
|
|
[dev_dependencies]
|
|
libtest-mimic = "0.6"
|
|
tempfile = "*"
|