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>
This commit is contained in:
Daniel Verkamp 2024-05-21 15:37:42 -07:00 committed by crosvm LUCI
parent 31c24b551e
commit 52b8e42869
59 changed files with 205 additions and 208 deletions

View file

@ -422,7 +422,7 @@ arch = { path = "arch" }
argh = "0.1.10"
argh_helpers = { path = "argh_helpers" }
audio_streams = "*"
base = "*"
base = { path = "base" }
bit_field = { path = "bit_field" }
broker_ipc = { path = "broker_ipc" }
cfg-if = "1.0.0"
@ -454,11 +454,11 @@ net_util = { path = "net_util" }
once_cell = "1.7"
protobuf = { version = "3.2", optional = true }
protos = { path = "protos", optional = true }
remain = "*"
remain = "0.2"
resources = { path = "resources" }
scudo = { version = "0.1", optional = true }
serde = { version = "*", features = ["rc"] }
serde_json = "*"
serde = { version = "1", features = ["rc"] }
serde_json = "1"
serde_keyvalue = { path = "serde_keyvalue", features = ["argh_derive"] }
smallvec = "1.6.1"
static_assertions = "1.1"
@ -488,25 +488,23 @@ vhost = { path = "vhost" }
[target.'cfg(windows)'.dependencies]
anti_tamper = { path = "vendor/generic/anti_tamper" }
cros_async = { path = "cros_async" }
ctrlc = "*"
ctrlc = "3"
futures = "0.3"
gpu_display = { path = "gpu_display", optional = true }
rand = "0.8"
sandbox = { path = "sandbox" }
cros_tracing = { path = "cros_tracing" }
tube_transporter = { path = "tube_transporter" }
winapi = "*"
winapi = "0.3"
win_audio = { path = "win_audio" }
win_util = { path = "win_util" }
[dev-dependencies]
base = "*"
rand = "0.8"
tempfile = "3"
[patch.crates-io]
audio_streams = { path = "common/audio_streams" }
base = { path = "base" }
cros_async = { path = "cros_async" }
data_model = { path = "common/data_model" }
libcras = { path = "libcras_stub" } # ignored by ebuild

View file

@ -18,15 +18,15 @@ hypervisor = { path = "../hypervisor" }
jail = { path = "../jail" }
kernel_cmdline = { path = "../kernel_cmdline" }
kernel_loader = { path = "../kernel_loader" }
libc = "*"
libc = "0.2"
memoffset = "0.6"
rand = "0.8"
remain = "*"
remain = "0.2"
resources = { path = "../resources" }
swap = { path = "../swap" }
sync = { path = "../common/sync" }
base = { path = "../base" }
thiserror = "*"
thiserror = "1"
vm_control = { path = "../vm_control" }
vm_memory = { path = "../vm_memory" }

View file

@ -13,7 +13,7 @@ swap = ["swap/enable"]
[dependencies]
acpi_tables = { path = "../acpi_tables" }
anyhow = "*"
anyhow = "1"
base = { path = "../base" }
cfg-if = "1.0.0"
cros_fdt = { path = "../cros_fdt" }
@ -24,11 +24,11 @@ gdbstub_arch = { version = "0.3.0", optional = true }
hypervisor = { path = "../hypervisor" }
jail = { path = "../jail" }
kernel_cmdline = { path = "../kernel_cmdline" }
libc = "*"
libc = "0.2"
metrics = { path = "../metrics" }
resources = { path = "../resources" }
remain = "*"
serde = { version = "*", features = [ "derive"] }
remain = "0.2"
serde = { version = "1", features = [ "derive"] }
serde_json = { version = "1" }
serde_keyvalue = { path = "../serde_keyvalue", features = ["argh_derive"] }
swap = { path = "../swap" }
@ -43,8 +43,8 @@ minijail = "*" # provided by ebuild
power_monitor = { path = "../power_monitor" }
[target.'cfg(windows)'.dependencies]
winapi = "*"
winapi = "0.3"
[dev-dependencies]
serde_json = "*"
serde_json = "1"
tempfile = "3"

View file

@ -9,14 +9,14 @@ audio_cras = ["dep:libcras"]
chromeos = ["audio_cras"]
[dependencies]
argh = "*"
argh = "0.1"
audio_streams = { path = "../common/audio_streams" }
cfg-if = "1.0.0"
cros_async = { path = "../cros_async" }
libcras = { version = "*", optional = true }
remain = "0.2"
serde = { version = "1.0", features = ["derive"] }
serde_json = "*"
serde_json = "1"
thiserror = "1.0.20"
[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies]

View file

@ -17,19 +17,19 @@ seccomp_trace = []
[dependencies]
audio_streams = { path = "../common/audio_streams" } # provided by ebuild
base_event_token_derive = { path = "base_event_token_derive", version = "*" }
base_event_token_derive = { path = "base_event_token_derive" }
sync = { path = "../common/sync" } # provided by ebuild
cfg-if = "*"
cfg-if = "1"
chrono = { version = "0.4.34", features = ["now"], default-features = false }
env_logger = { version = "0.9.0", default-features = false }
libc = "*"
libc = "0.2"
log = "0.4"
once_cell = "1.7"
protobuf = { version = "3.2", optional = true }
remain = "0.2"
serde = { version = "1", features = [ "derive" ] }
serde_json = "*"
serde_json = "1"
smallvec = "1.6.1"
thiserror = "1.0.20"
uuid = { version = "1", features = ["v4"] }
@ -47,5 +47,5 @@ minijail = "*"
futures = { version = "0.3" }
protobuf = "3.2"
rand = "0.8"
winapi = "*"
winapi = "0.3"
win_util = { path = "../win_util"}

View file

@ -12,7 +12,7 @@ async-trait = "0.1.36"
async-task = "4"
cfg-if = "1.0.0"
intrusive-collections = "0.9"
libc = "*"
libc = "0.2"
once_cell = "1.7.2"
paste = "1.0"
pin-utils = "0.1.0-alpha.4"
@ -23,7 +23,7 @@ base = { path = "../base" } # provided by ebuild
thiserror = "1.0.20"
audio_streams = { path = "../common/audio_streams" } # provided by ebuild
anyhow = "1.0"
serde = "*"
serde = "1"
serde_keyvalue = { path = "../serde_keyvalue", features = ["argh_derive"] } # provided by ebuild
static_assertions = "1.1"
tokio = { version = "1.29.1", optional = true, features = ["net", "rt-multi-thread"] }
@ -32,17 +32,17 @@ tokio = { version = "1.29.1", optional = true, features = ["net", "rt-multi-thre
io_uring = { path = "../io_uring" } # provided by ebuild
[target.'cfg(windows)'.dependencies]
winapi = "*"
winapi = "0.3"
win_util = { path = "../win_util" }
smallvec = "*"
smallvec = "1"
[dependencies.futures]
version = "*"
version = "0.3"
default-features = false
features = ["alloc"]
[dev-dependencies]
futures = { version = "*", features = ["executor"] }
futures = { version = "0.3", features = ["executor"] }
futures-executor = { version = "0.3", features = ["thread-pool"] }
futures-util = "0.3"
tempfile = "3"

View file

@ -5,7 +5,7 @@ authors = ["The ChromiumOS Authors"]
edition = "2021"
[dependencies]
anyhow = "*"
indexmap = "*"
remain = "*"
anyhow = "1"
indexmap = "1"
remain = "0.2"
thiserror = "1.0.20"

View file

@ -17,8 +17,8 @@ trace_marker = []
perfetto = ["dep:perfetto"]
[dependencies]
anyhow = "*"
base = "*"
anyhow = "1"
base = { path = "../base" }
cfg-if = "1.0.0"
cros_tracing_types = { path = "../cros_tracing_types" }
perfetto = { path = "../perfetto", optional = true }

View file

@ -5,5 +5,5 @@ authors = ["The Chromium OS Authors"]
edition = "2021"
[dependencies]
anyhow = "*"
anyhow = "1"
sync = { path = "../common/sync" }

View file

@ -12,4 +12,4 @@ cfg-if = "1.0.0"
[target.'cfg(windows)'.dependencies]
win_util = { path = "../win_util" }
winapi = "*"
winapi = "0.3"

View file

@ -18,7 +18,7 @@ swap = { path = "../swap", default-features = false }
vm_control = { path = "../vm_control", features = [ "balloon" ] }
[build-dependencies]
anyhow = "*"
anyhow = "1"
cbindgen = "0.24.3"
cc = "*"
tempfile = "*"
cc = "1"
tempfile = "3"

View file

@ -13,7 +13,7 @@ crate-type = ["cdylib"]
[dependencies]
kvm = { path = "../kvm" }
kvm_sys = { path = "../kvm_sys" }
libc = "*"
libc = "0.2"
protobuf = "3.2"
protos = { path = "../protos", features = ["plugin"] }
base = { path = "../base" }

View file

@ -39,7 +39,7 @@ noncoherent-dma = []
argh = "0.1.7"
async-task = "4"
acpi_tables = {path = "../acpi_tables" }
anyhow = "*"
anyhow = "1"
async-trait = "0.1.36"
audio_streams = "*"
audio_util = { path = "../audio_util" }
@ -62,7 +62,7 @@ gpu_display = { path = "../gpu_display", optional = true }
rutabaga_gfx = { path = "../rutabaga_gfx" }
hypervisor = { path = "../hypervisor" }
kvm_sys = { path = "../kvm_sys" }
libc = "*"
libc = "0.2"
libvda = { path = "../media/libvda", optional = true }
linux_input_sys = { path = "../linux_input_sys" }
memoffset = { version = "0.6" }
@ -74,7 +74,7 @@ power_monitor = { path = "../power_monitor" }
protobuf = { version = "3.2", optional = true }
protos = { path = "../protos", optional = true }
rand = "0.8"
remain = "*"
remain = "0.2"
resources = { path = "../resources" }
serde = { version = "1", features = [ "derive", "rc" ] }
serde_json = "1"
@ -96,7 +96,7 @@ fuse = {path = "../fuse" }
libcras = { version = "*", optional = true }
minijail = "*"
net_sys = { path = "../net_sys" }
p9 = "*"
p9 = "0.2"
usb_util = { path = "../usb_util" }
vfio_sys = { path = "../vfio_sys" }
vhost = { path = "../vhost" }
@ -106,10 +106,10 @@ broker_ipc = { path = "../broker_ipc" }
tube_transporter = { path = "../tube_transporter" }
win_audio = { path = "../win_audio"}
win_util = { path = "../win_util"}
winapi = "*"
winapi = "0.3"
[dependencies.futures]
version = "*"
version = "0.3"
features = ["async-await", "std"]
default-features = false

View file

@ -13,25 +13,25 @@ composite-disk = ["crc32fast", "protos", "protobuf", "uuid"]
qcow = []
[dependencies]
async-trait = "*"
async-trait = "0.1.36"
base = { path = "../base" }
cfg-if = "1.0.0"
crc32fast = { version = "1.2.1", optional = true }
cros_async = { path = "../cros_async" }
data_model = { path = "../common/data_model" }
libc = "*"
libc = "0.2"
protobuf = { version = "3.2", optional = true }
protos = { path = "../protos", features = ["composite-disk"], optional = true }
remain = "*"
remain = "0.2"
serde = { version = "1", features = [ "derive" ] }
sync = { path = "../common/sync" }
thiserror = "*"
thiserror = "1"
uuid = { version = "1", features = ["v4"], optional = true }
vm_memory = { path = "../vm_memory" }
zerocopy = { version = "0.7", features = ["derive"] }
[dependencies.futures]
version = "*"
version = "0.3"
default-features = false
[dev-dependencies]

View file

@ -5,16 +5,16 @@ authors = ["The ChromiumOS Authors"]
edition = "2021"
[dev-dependencies]
anyhow = "*"
anyhow = "1"
fixture = { path = "fixture" }
libc = "*"
libc = "0.2"
net_util = {path = "../net_util"}
rand = "0.8"
tempfile = "3"
prebuilts = { path = "../prebuilts" }
base = { path = "../base" }
swap = { path= "../swap" }
serde_json = "*"
serde_json = "1"
[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies]
net_sys = {path = "../net_sys"}

View file

@ -5,19 +5,19 @@ authors = ["The Chromium OS Authors"]
edition = "2021"
[dependencies]
anyhow = "*"
anyhow = "1"
arch = { path = "../../arch" }
base = "*"
base = { path = "../../base" }
crc32fast = "1.3"
cfg-if = "*"
cfg-if = "1"
libc = "0.2.65"
rand = "0.8"
tempfile = "3"
prebuilts = { path = "../../prebuilts" }
log = "*"
log = "0.4"
shlex = "1.3"
url = "2.3"
delegate = {path = "../guest_under_test/rootfs/delegate"}
serde = {version = "*", features = ["derive"]}
serde_json = "*"
serde = {version = "1", features = ["derive"]}
serde_json = "1"
readclock = { path = "../guest_under_test/rootfs/readclock" }

View file

@ -5,5 +5,5 @@ authors = ["The Chromium OS Authors"]
edition = "2021"
[dependencies]
serde = {version = "*", features = ["derive"]}
serde_json = "*"
serde = {version = "1", features = ["derive"]}
serde_json = "1"

View file

@ -9,7 +9,7 @@ authors = ["The Chromium OS Authors"]
edition = "2021"
[dependencies]
anyhow = "*"
libc = "*"
serde = {version = "*", features = ["derive"]}
serde_json = "*"
anyhow = "1"
libc = "0.2"
serde = {version = "1", features = ["derive"]}
serde_json = "1"

View file

@ -5,16 +5,16 @@ authors = ["The ChromiumOS Authors"]
edition = "2021"
[dependencies]
anyhow = "*"
anyhow = "1"
base = { path = "../base/" }
libc = "*"
uuid = { version = "*", features = ["v4"] }
libc = "0.2"
uuid = { version = "1", features = ["v4"] }
zerocopy = "0.7.29" # >=0.7.29 is required for our 'AsBytes'
zerocopy-derive = "*"
zerocopy-derive = "0.7"
[[example]]
name = "mkfs"
[dev-dependencies]
argh = "*"
tempfile = "*"
argh = "0.1"
tempfile = "3"

View file

@ -8,12 +8,12 @@ edition = "2021"
path = "src/lib.rs"
[dependencies]
base = "*"
base = { path = "../base" }
bitflags = "2.2.1"
crossbeam-utils = "0.8"
cros_tracing = { path = "../cros_tracing" }
enumn = "0.1.0"
libc = { version = "*", features = ["extra_traits"] }
libc = { version = "0.2", features = ["extra_traits"] }
remain = "0.2"
thiserror = "1.0.20"
zerocopy = { version = "0.7", features = ["derive"] }

View file

@ -13,13 +13,13 @@ disk = { path = "../disk" }
fuse = { path = "../fuse" }
hypervisor = { path = "../hypervisor" }
kernel_loader = { path = "../kernel_loader" }
libc = "*"
libc = "0.2"
rand = "0.8"
base = { path = "../base" }
tempfile = "3"
usb_util = { path = "../usb_util" }
vm_memory = { path = "../vm_memory" }
p9 = "*"
p9 = "0.2"
rand_core = {version = "0.6", features = ["std"]}
cfg-if = "1.0"

View file

@ -16,13 +16,13 @@ android_display = []
android_display_stub = []
[dependencies]
anyhow = "*"
libc = "*"
anyhow = "1"
libc = "0.2"
base = { path = "../base" }
linux_input_sys = { path = "../linux_input_sys" }
remain = "*"
thiserror = "*"
cfg-if = "*"
remain = "0.2"
thiserror = "1"
cfg-if = "1"
serde = { version = "1", features = [ "derive" ] }
vm_control = { path = "../vm_control", features = ["gpu"] }
zerocopy = { version = "0.7", features = ["derive"] }
@ -31,19 +31,19 @@ ash = { version = "0.37.0", optional = true }
rand = { version = "0.8.5", optional = true }
protos = { path = "../protos", optional = true }
protobuf = { version = "3.2", optional = true }
euclid = { version = "*", optional = true }
smallvec = { version = "*", optional = true }
euclid = { version = "0.22", optional = true }
smallvec = { version = "1", optional = true }
sync = { path = "../common/sync" }
[target.'cfg(windows)'.dependencies]
cros_tracing = { path = "../cros_tracing" }
metrics = { path = "../metrics" }
num-traits = "*"
winapi = "*"
num-traits = "0.2"
winapi = "0.3"
win_util = { path = "../win_util" }
smallvec = "*"
smallvec = "1"
sync = { path = "../common/sync" }
euclid = "*"
euclid = "0.22"
[build-dependencies]
cc = "1.0.25"

View file

@ -12,7 +12,7 @@ gunyah = []
noncoherent-dma = []
[dependencies]
anyhow = "*"
anyhow = "1"
bit_field = { path = "../bit_field" }
bitflags = "2.2.1"
cros_fdt = { path = "../cros_fdt" }
@ -20,7 +20,7 @@ data_model = { path = "../common/data_model" }
downcast-rs = "1.2.0"
enumn = "0.1.0"
fnv = "1"
libc = "*"
libc = "0.2"
memoffset = "0.6"
once_cell = "1.7"
serde = { version = "1", features = [ "derive" ] }
@ -37,8 +37,8 @@ hypervisor_test_macro = { path = "hypervisor_test_macro" }
zerocopy = { version = "0.7", features = ["derive"] }
[target.'cfg(windows)'.dependencies]
thiserror = "*"
winapi = "*"
thiserror = "1"
winapi = "0.3"
win_util = { path = "../win_util" }
[target.'cfg(windows)'.dependencies.windows]
@ -48,4 +48,4 @@ features = [
]
[target.'cfg(windows)'.dev-dependencies]
tempfile = "*"
tempfile = "3"

View file

@ -8,13 +8,13 @@ edition = "2021"
seccomp_trace = []
[dependencies]
anyhow = "*"
anyhow = "1"
base = { path = "../base" }
libc = "*"
once_cell = "*"
serde = "*"
libc = "0.2"
once_cell = "1.7"
serde = "1"
serde_keyvalue = { path = "../serde_keyvalue", features = ["argh_derive"] }
static_assertions = "*"
static_assertions = "1.1"
zerocopy = { version = "0.7", features = ["derive"] }
[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies]
@ -25,4 +25,4 @@ which = "4"
rayon = "1.5.3"
[dev-dependencies]
cfg-if = "*"
cfg-if = "1"

View file

@ -4,9 +4,9 @@ version = "0.1.0"
edition = "2021"
[dependencies]
libc = "*"
remain = "*"
thiserror = "*"
libc = "0.2"
remain = "0.2"
thiserror = "1"
[lib]
path = "src/kernel_cmdline.rs"

View file

@ -5,12 +5,12 @@ edition = "2021"
[dependencies]
data_model = { path = "../common/data_model" }
libc = "*"
libc = "0.2"
base = { path = "../base" }
lz4_flex = "0.11"
remain = "*"
remain = "0.2"
resources = { path = "../resources" }
thiserror = "*"
thiserror = "1"
vm_memory = { path = "../vm_memory" }
zerocopy = { version = "0.7", features = ["derive"] }

View file

@ -7,7 +7,7 @@ edition = "2021"
[dependencies]
data_model = { path = "../common/data_model" }
kvm_sys = { path = "../kvm_sys" }
libc = "*"
libc = "0.2"
base = { path = "../base" }
sync = { path = "../common/sync" }
vm_memory = { path = "../vm_memory" }

View file

@ -6,6 +6,6 @@ edition = "2021"
[dependencies]
data_model = { path = "../common/data_model" }
libc = "*"
libc = "0.2"
base = { path = "../base" }
zerocopy = {version = "0.7", features = ["derive"]}

View file

@ -9,4 +9,4 @@ path = "src/libcras.rs"
[dependencies]
audio_streams = "*"
serde = "*"
serde = "1"

View file

@ -6,6 +6,6 @@ edition = "2021"
[dependencies]
data_model = { path = "../common/data_model" }
libc = "*"
libc = "0.2"
base = { path = "../base" }
zerocopy = { version = "0.7", features = ["derive"] }

View file

@ -5,10 +5,10 @@ authors = ["The ChromiumOS Authors"]
edition = "2021"
[dependencies]
anyhow = "*"
libc = "*"
thiserror = "*"
anyhow = "1"
libc = "0.2"
thiserror = "1"
[build-dependencies]
bindgen = "0.63"
pkg-config = "*"
pkg-config = "0.3"

View file

@ -10,7 +10,7 @@ libvda-stub = []
[dependencies]
enumn = "0.1.0"
libc = "*"
libc = "0.2"
[build-dependencies]
pkg-config = "*"
pkg-config = "0.3"

View file

@ -5,9 +5,9 @@ authors = ["The ChromiumOS Authors"]
edition = "2021"
[dependencies]
anyhow = "*"
anyhow = "1"
base = { path = "../base" }
cfg-if = "*"
cfg-if = "1"
serde = { version = "1", features = ["derive"] }
sync = { path = "../common/sync" }
metrics_events = { path = "../metrics_events" }
@ -15,4 +15,4 @@ metrics_product = { path = "../vendor/generic/metrics", package = "metrics_gener
[target.'cfg(windows)'.dependencies]
chrono = { version = "0.4.34", default-features = false, features = ["now"] }
winapi = { version = "*" }
winapi = { version = "0.3" }

View file

@ -5,8 +5,8 @@ authors = ["The ChromiumOS Authors"]
edition = "2021"
[dependencies]
anyhow = "*"
cfg-if = "*"
anyhow = "1"
cfg-if = "1"
serde = { version = "1", features = ["derive"] }
metrics_events_product = { path = "../vendor/generic/metrics_events", package = "metrics_events_generic" }

View file

@ -6,4 +6,4 @@ edition = "2021"
[dependencies]
base = { path = "../base" }
libc = "*"
libc = "0.2"

View file

@ -15,12 +15,12 @@ slirp-ring-capture = ["slirp"]
base = { path = "../base" }
cfg-if = "1.0.0"
cros_async = { path = "../cros_async" }
libc = "*"
libc = "0.2"
pcap-file = { version = "1.1.0", optional = true }
remain = "*"
remain = "0.2"
serde = { version = "1", features = [ "derive" ] }
smallvec = "*"
thiserror = "*"
smallvec = "1"
thiserror = "1"
virtio_sys = { path = "../virtio_sys" }
zerocopy = { version = "0.7", features = ["derive"] }
@ -29,12 +29,12 @@ net_sys = { path = "../net_sys" }
[target.'cfg(windows)'.dependencies]
metrics = { path = "../metrics" }
winapi = { version = "*", features = ["everything", "std", "impl-default"] }
winapi = { version = "0.3", features = ["everything", "std", "impl-default"] }
libslirp-sys = { version = "4.2.1", optional = true }
[build-dependencies]
anyhow = "*"
anyhow = "1"
prebuilts = { path = "../prebuilts" }
[dev-dependencies]
serde_json = "*"
serde_json = "1"

View file

@ -13,14 +13,14 @@ default = ["openssl"]
pure-rust-hashes = ["sha2"]
[dependencies]
anyhow = "*"
anyhow = "1"
base = { path = "../base" }
cfg-if = "1.0.0"
cros_tracing_types = { path = "../cros_tracing_types" }
openssl = { version = "*", optional = true }
openssl = { version = "0.10", optional = true }
protobuf = "3.2"
serde = { version = "1", features = [ "derive" ] }
sha2 = { version = "*", optional = true }
sha2 = { version = "0.10", optional = true }
sync = { path = "../common/sync" }
zerocopy = { version = "0.7", features = ["derive"] }

View file

@ -5,6 +5,6 @@ authors = ["The ChromiumOS Authors"]
edition = "2021"
[dependencies]
anyhow = "*"
cfg-if = "*"
anyhow = "1"
cfg-if = "1"
named-lock = "0.3"

View file

@ -5,8 +5,8 @@ authors = ["The ChromiumOS Authors"]
edition = "2021"
[dependencies]
libc = "*"
libc = "0.2"
base = { path = "../base" }
serde = { version = "1", features = ["derive"] }
remain = "*"
thiserror = "*"
remain = "0.2"
thiserror = "1"

View file

@ -15,12 +15,12 @@ gdbstub = { version = "0.7.0", optional = true }
gdbstub_arch = { version = "0.3.0", optional = true }
hypervisor = { path = "../hypervisor" }
kernel_cmdline = { path = "../kernel_cmdline" }
libc = "*"
libc = "0.2"
rand = "0.8"
remain = "*"
remain = "0.2"
resources = { path = "../resources" }
sync = { path = "../common/sync" }
thiserror = "*"
thiserror = "1"
base = { path = "../base" }
vm_control = { path = "../vm_control" }
vm_memory = { path = "../vm_memory" }

View file

@ -9,8 +9,8 @@ base = { path = "../base" }
[target.'cfg(windows)'.dependencies]
win_util = { path = "../win_util"}
winapi = { version = "*", features = ["everything", "std", "impl-default"] }
winapi = { version = "0.3", features = ["everything", "std", "impl-default"] }
[build-dependencies]
anyhow = "*"
anyhow = "1"
prebuilts = { path = "../prebuilts" }

View file

@ -12,7 +12,7 @@ argh = { version = "0.1.7", optional = true }
serde_keyvalue_derive = { path = "serde_keyvalue_derive", optional = true } # provided by ebuild
serde = "1"
thiserror = { version = "1.0.20" }
remain = "*"
remain = "0.2"
num-traits = "0.2"
nom = { version = "7.1.0", features = ["alloc"] }

View file

@ -17,23 +17,23 @@ trace_marker = ["cros_tracing/trace_marker"]
enable = ["userfaultfd", "userfaultfd-sys"]
[dependencies]
anyhow = "*"
anyhow = "1"
base = { path = "../base" }
cfg-if = "*"
cfg-if = "1"
cros_tracing = { path = "../cros_tracing" }
jail = { path = "../jail" }
metrics = { path = "../metrics" }
num_cpus = "*"
once_cell = "*"
remain = "*"
num_cpus = "1"
once_cell = "1.7"
remain = "0.2"
serde = { version = "1", features = ["derive"] }
serde_json = "*"
serde_json = "1"
sync = { path = "../common/sync" } # provided by ebuild
thiserror = "*"
thiserror = "1"
vm_memory = { path = "../vm_memory" }
[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies]
libc = "*"
libc = "0.2"
[target.'cfg(target_os="linux")'.dependencies]
userfaultfd = { version = "0.8.1", optional = true }
@ -41,4 +41,4 @@ userfaultfd-sys = { version = "0.5.0", optional = true }
[dev-dependencies]
libtest-mimic = "0.6"
tempfile = "*"
tempfile = "3"

View file

@ -14,20 +14,20 @@ edition = "2021"
default = []
[dependencies]
anyhow = "*"
anyhow = "1"
base = { path = "../../base" }
bitflags = "2.3"
cfg-if = "1.0.0"
enumn = "0.1.0"
libc = ">=0.2.39"
remain = "*"
remain = "0.2"
thiserror = { version = "1.0.20" }
zerocopy = { version = "0.7", features = ["derive"] }
[target.'cfg(windows)'.dependencies]
serde = { version = "1", features = [ "derive" ] }
serde_json = "*"
serde_json = "1"
tube_transporter = { path = "../../tube_transporter" }
[dev-dependencies]
tempfile = "*"
tempfile = "3"

View file

@ -7,11 +7,11 @@ edition = "2021"
[dependencies]
anyhow = "1.0.75"
argh = "*"
argh = "0.1"
libtracecmd = "0.2"
log = "*"
log = "0.4"
once_cell = "1.18.0"
serde = { version = "*", features = ["derive"] }
serde_json = "*"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
[workspace]

View file

@ -6,7 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
rayon = "*"
anyhow = "*"
rayon = "1"
anyhow = "1"
[workspace]

View file

@ -6,13 +6,13 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
anyhow = "*"
argh = "*"
ctrlc = "*"
env_logger = "*"
log = "*"
regex = "*"
serde = { version = "*", features = ["derive"] }
serde_json = "*"
anyhow = "1"
argh = "0.1"
ctrlc = "3"
env_logger = "0.9"
log = "0.4"
regex = "1.3"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
[workspace]

View file

@ -11,12 +11,12 @@ argh = "0.1"
env_logger = "0.10"
log = "0.4"
regex = "1.3"
serde = { version = "*", features = ["derive"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
once_cell = "1"
[dev-dependencies]
rstest = "*"
rstest = "0.19"
[workspace]

View file

@ -4,9 +4,8 @@ version = "0.1.0"
authors = ["The Chromium OS Authors"]
edition = "2021"
[dependencies]
serde_json = "*"
serde = { version = "*", features = ["derive"] }
argh = "*"
serde_json = "1"
serde = { version = "1", features = ["derive"] }
argh = "0.1"
uuid = {version = "1", features = ["v4"]}

View file

@ -10,8 +10,8 @@ base = { path = "../base" }
rand = "0.8"
thiserror = "1.0.20"
serde = { version = "1", features = [ "derive" ] }
serde_json = "*"
serde_json = "1"
[target.'cfg(windows)'.dependencies]
win_util = { path = "../win_util"}
winapi = "*"
winapi = "0.3"

View file

@ -7,9 +7,9 @@ edition = "2021"
[dependencies]
static_assertions = "1.1"
data_model = { path = "../common/data_model" }
libc = "*"
remain = "*"
thiserror = "*"
libc = "0.2"
remain = "0.2"
thiserror = "1"
base = { path = "../base" }
usb_sys = { path = "../usb_sys" }
sync = { path = "../common/sync" }

View file

@ -11,7 +11,7 @@ rustcrypto = []
anyhow = "1.0.32"
base = { path = "../../../base" }
serde = { version = "1", features = ["derive"] }
serde_json = "*"
serde_json = "1"
zeroize = "1.5.7"
[dev-dependencies]

View file

@ -10,6 +10,6 @@ experimental = []
collect = []
[dependencies]
anyhow = "*"
anyhow = "1"
base = { path = "../../../base" }
metrics_events = { path = "../../../metrics_events" }

View file

@ -6,10 +6,10 @@ edition = "2021"
[dependencies]
static_assertions = "1.1"
libc = "*"
libc = "0.2"
net_util = { path = "../net_util" }
base = { path = "../base" }
remain = "*"
thiserror = "*"
remain = "0.2"
thiserror = "1"
virtio_sys = { path = "../virtio_sys" }
vm_memory = { path = "../vm_memory" }

View file

@ -13,28 +13,28 @@ registered_events = ["balloon", "protos/registered_events"]
swap = ["swap/enable"]
[dependencies]
anyhow = "*"
anyhow = "1"
balloon_control = { path = "../common/balloon_control" }
base = { path = "../base" }
cfg-if = "*"
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 = "*"
libc = "0.2"
once_cell = "1.7.2"
protos = { path = "../protos", optional = true }
remain = "*"
remain = "0.2"
resources = { path = "../resources" }
rutabaga_gfx = { path = "../rutabaga_gfx" }
serde = { version = "1", features = ["derive"] }
serde_json = "*"
serde_json = "1"
serde_keyvalue = { path = "../serde_keyvalue", features = ["argh_derive"] }
swap = { path = "../swap" }
sync = { path = "../common/sync" }
thiserror = "*"
thiserror = "1"
vm_control_product = { path = "../vendor/generic/vm_control", package = "vm_control_product" }
vm_memory = { path = "../vm_memory" }
[target.'cfg(windows)'.dependencies]
winapi = "*"
winapi = "0.3"

View file

@ -10,14 +10,14 @@ anyhow = "1.0.32"
cfg-if = "1.0.0"
cros_async = { path = "../cros_async" }
data_model = { path = "../common/data_model" }
libc = "*"
libc = "0.2"
lz4_flex = "0.11"
base = { path = "../base" }
bitflags = "2.2.1"
remain = "*"
remain = "0.2"
serde = { version = "1", features = [ "derive" ] }
serde_json = "*"
thiserror = "*"
serde_json = "1"
thiserror = "1"
zerocopy = { version = "0.7", features = ["derive"] }
[dev-dependencies]

View file

@ -10,16 +10,16 @@ audio_streams = { path = "../common/audio_streams"}
audio_util = { path = "../audio_util" }
base = { path = "../base" }
cros_async = { path = "../cros_async" }
libc = "*"
libc = "0.2"
win_util = { path = "../win_util" }
winapi = "*"
wio = "*"
winapi = "0.3"
wio = "0.2"
sync = { path = "../common/sync" }
thiserror = "*"
thiserror = "1"
metrics = { path = "../metrics"}
once_cell = "1.7.2"
[build-dependencies]
anyhow = "*"
anyhow = "1"
prebuilts = { path = "../prebuilts" }

View file

@ -5,15 +5,15 @@ authors = ["The ChromiumOS Authors"]
edition = "2021"
[dependencies]
anyhow = "*"
anyhow = "1"
enumn = "0.1.0"
libc = "*"
libc = "0.2"
once_cell = "1.7"
serde = { version = "1", features = [ "derive" ] }
zeroize = "1.5.7"
[target.'cfg(windows)'.dependencies]
winapi = { version = "*", features = ["everything", "std", "impl-default"] }
winapi = { version = "0.3", features = ["everything", "std", "impl-default"] }
[dependencies.windows]
version = "0.39.0"

View file

@ -12,7 +12,7 @@ swap = ["swap/enable"]
[dependencies]
acpi_tables = {path = "../acpi_tables" }
arch = { path = "../arch" }
anyhow = "*"
anyhow = "1"
cfg-if = "1.0.0"
chrono = { version = "0.4.34", default-features = false }
cros_fdt = { path = "../cros_fdt" }
@ -22,14 +22,14 @@ hypervisor = { path = "../hypervisor" }
jail = { path = "../jail" }
kernel_cmdline = { path = "../kernel_cmdline" }
kernel_loader = { path = "../kernel_loader" }
libc = "*"
libc = "0.2"
memoffset = "0.6"
once_cell = "1.7.2"
rand = "0.8"
remain = "*"
remain = "0.2"
resources = { path = "../resources" }
sync = { path = "../common/sync" }
thiserror = "*"
thiserror = "1"
uuid = { version = "1", features = ["v4"] }
base = { path = "../base" }
swap = { path = "../swap" }