mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +00:00
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>
This commit is contained in:
parent
9a50dfbdcf
commit
478c7104f8
1 changed files with 13 additions and 4 deletions
|
@ -4,6 +4,9 @@ version = "0.1.0"
|
||||||
authors = ["The Chromium OS Authors"]
|
authors = ["The Chromium OS Authors"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
|
[features]
|
||||||
|
haxm = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bit_field = { path = "../bit_field" }
|
bit_field = { path = "../bit_field" }
|
||||||
bitflags = "1"
|
bitflags = "1"
|
||||||
|
@ -11,8 +14,6 @@ data_model = { path = "../common/data_model" }
|
||||||
downcast-rs = "1.2.0"
|
downcast-rs = "1.2.0"
|
||||||
enumn = "0.1.0"
|
enumn = "0.1.0"
|
||||||
fnv = "1"
|
fnv = "1"
|
||||||
kvm = { path = "../kvm" }
|
|
||||||
kvm_sys = { path = "../kvm_sys" }
|
|
||||||
libc = "*"
|
libc = "*"
|
||||||
memoffset = "0.6"
|
memoffset = "0.6"
|
||||||
serde = { version = "1", features = [ "derive" ] }
|
serde = { version = "1", features = [ "derive" ] }
|
||||||
|
@ -20,5 +21,13 @@ sync = { path = "../common/sync" }
|
||||||
base = { path = "../base" }
|
base = { path = "../base" }
|
||||||
vm_memory = { path = "../vm_memory" }
|
vm_memory = { path = "../vm_memory" }
|
||||||
|
|
||||||
[features]
|
[target.'cfg(unix)'.dependencies]
|
||||||
haxm = []
|
kvm = { path = "../kvm" }
|
||||||
|
kvm_sys = { path = "../kvm_sys" }
|
||||||
|
|
||||||
|
[target.'cfg(windows)'.dependencies]
|
||||||
|
winapi = "*"
|
||||||
|
win_util = { path = "../win_util" }
|
||||||
|
|
||||||
|
[target.'cfg(windows)'.dev-dependencies]
|
||||||
|
tempfile = "*"
|
||||||
|
|
Loading…
Reference in a new issue