crosvm/hypervisor/Cargo.toml
Vaibhav Nagarnaik 478c7104f8 hypervisor: Update Cargo.toml dependencies
The `haxm` implementation depends on `win_util` and `winapi` crates
which are only required on Windows. The `tempfile` crate is used in
testing.

Move `kvm` and `kvm_sys` dependencies for non-windows builds.

BUG=b:213151459
TEST=Compiled on linux.

Change-Id: I55b8ee4ac5da953a17e8bdd063e5ed488e3f53f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3684929
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Vaibhav Nagarnaik <vnagarnaik@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2022-06-02 00:05:06 +00:00

33 lines
709 B
TOML

[package]
name = "hypervisor"
version = "0.1.0"
authors = ["The Chromium OS Authors"]
edition = "2021"
[features]
haxm = []
[dependencies]
bit_field = { path = "../bit_field" }
bitflags = "1"
data_model = { path = "../common/data_model" }
downcast-rs = "1.2.0"
enumn = "0.1.0"
fnv = "1"
libc = "*"
memoffset = "0.6"
serde = { version = "1", features = [ "derive" ] }
sync = { path = "../common/sync" }
base = { path = "../base" }
vm_memory = { path = "../vm_memory" }
[target.'cfg(unix)'.dependencies]
kvm = { path = "../kvm" }
kvm_sys = { path = "../kvm_sys" }
[target.'cfg(windows)'.dependencies]
winapi = "*"
win_util = { path = "../win_util" }
[target.'cfg(windows)'.dev-dependencies]
tempfile = "*"