crosvm/vm_control/Cargo.toml
Daniel Verkamp 52b8e42869 Cargo.toml: avoid "*" versions for external crates
Ensure that every Cargo.toml dependency on a third-party crates.io crate
specifies at least a major version, or a minor version for 0.x crates,
to ensure that if a new major version is published, it cannot cause API
breaks.

The versions are selected to match the ones already in Cargo.lock, so
this should have no functional change, but it will help prevent new "*"
versions from being introduced via copy-and-paste.

For rationale, see the Cargo FAQ:
<https://doc.rust-lang.org/cargo/faq.html#can-libraries-use--as-a-version-for-their-dependencies>

`minijail`, `audio_streams`, and `cras` are left as "*" for now, since
they have unusual situations (imported from a submodule and/or replaced
at build time with ebuild magic).

BUG=None
TEST=tools/dev_container tools/presubmit
TEST=verify Cargo.lock is unchanged

Change-Id: Ifa18199f812f01d2d10bfb4146b3353c1a76527c
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5555656
Reviewed-by: Frederick Mayle <fmayle@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2024-05-22 01:01:42 +00:00

41 lines
1.2 KiB
TOML

[package]
name = "vm_control"
version = "0.1.0"
authors = ["The ChromiumOS Authors"]
edition = "2021"
[features]
balloon = []
gdb = ["gdbstub", "gdbstub_arch"]
gpu = []
pci-hotplug = []
registered_events = ["balloon", "protos/registered_events"]
swap = ["swap/enable"]
[dependencies]
anyhow = "1"
balloon_control = { path = "../common/balloon_control" }
base = { path = "../base" }
cfg-if = "1"
crypto = { path = "../vendor/generic/crypto", package = "crypto_generic" }
gdbstub = { version = "0.7.0", optional = true }
gdbstub_arch = { version = "0.3.0", optional = true }
hypervisor = { path = "../hypervisor" }
libc = "0.2"
once_cell = "1.7.2"
protos = { path = "../protos", optional = true }
remain = "0.2"
resources = { path = "../resources" }
rutabaga_gfx = { path = "../rutabaga_gfx" }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_keyvalue = { path = "../serde_keyvalue", features = ["argh_derive"] }
swap = { path = "../swap" }
sync = { path = "../common/sync" }
thiserror = "1"
vm_control_product = { path = "../vendor/generic/vm_control", package = "vm_control_product" }
vm_memory = { path = "../vm_memory" }
[target.'cfg(windows)'.dependencies]
winapi = "0.3"