mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 13:23:08 +00:00
8590cdcc8a
Status does not depend on any swap related feature. Exposing Status to all variants is easy to implement swap status FFI at crosvm_control. The new "swap/enable" feature switches the actual vmm-swap functionality to be compiled. The feature is enabled by default on "swap" crate but disabled on the root package for test dependency. Vmm-swap feature is enabled by `--features=swap` flag on cargo build as before. swap/src/controller.rs is copied from swap/src/lib.rs. BUG=b:265386761 TEST=tools/dev_container tools/run_tests2 Change-Id: Ifc2539a62d0f594fd5bbb41623c735ea2621f7b6 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4486546 Reviewed-by: Dennis Kempin <denniskempin@google.com> Commit-Queue: Shin Kawamura <kawasin@google.com> Reviewed-by: David Stevens <stevensd@chromium.org>
47 lines
1.3 KiB
TOML
47 lines
1.3 KiB
TOML
[package]
|
|
name = "arch"
|
|
version = "0.1.0"
|
|
authors = ["The ChromiumOS Authors"]
|
|
edition = "2021"
|
|
|
|
[features]
|
|
power-monitor-powerd = ["power_monitor/powerd"]
|
|
gdb = ["gdbstub", "gdbstub_arch"]
|
|
direct = []
|
|
trace_marker = ["cros_tracing/trace_marker"]
|
|
seccomp_trace = []
|
|
swap = ["swap/enable"]
|
|
|
|
[dependencies]
|
|
acpi_tables = { path = "../acpi_tables" }
|
|
anyhow = "*"
|
|
base = { path = "../base" }
|
|
cfg-if = "1.0.0"
|
|
cros_fdt = { path = "../cros_fdt" }
|
|
cros_tracing = { path = "../cros_tracing" }
|
|
devices = { path = "../devices" }
|
|
gdbstub = { version = "0.6.3", optional = true }
|
|
gdbstub_arch = { version = "0.2.4", optional = true }
|
|
hypervisor = { path = "../hypervisor" }
|
|
jail = { path = "../jail" }
|
|
kernel_cmdline = { path = "../kernel_cmdline" }
|
|
libc = "*"
|
|
resources = { path = "../resources" }
|
|
remain = "*"
|
|
serde = { version = "*", features = [ "derive"] }
|
|
serde_keyvalue = { path = "../serde_keyvalue", features = ["argh_derive"] }
|
|
swap = { path = "../swap" }
|
|
sync = { path = "../common/sync" }
|
|
thiserror = "1.0.20"
|
|
vm_control = { path = "../vm_control" }
|
|
vm_memory = { path = "../vm_memory" }
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
minijail = "*" # provided by ebuild
|
|
power_monitor = { path = "../power_monitor" }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
winapi = "*"
|
|
|
|
[dev-dependencies]
|
|
serde_json = "*"
|