Skip to content

Commit 22e2cec

Browse files
Databeancrosvm LUCI
authored and
crosvm LUCI
committed
Standardize on anyhow = "1" in Cargo.toml files
There was some variation before, with `anyhow = "1"` as the most common target. ``` $ rg 'anyhow =' --no-filename --no-line-number | sort | uniq -c 2 anyhow = "*" 31 anyhow = "1" 2 anyhow = "1.0" 7 anyhow = "1.0.32" 1 anyhow = "1.0.57" 1 anyhow = "1.0.75" ``` With this change, everything has been aligned to the most common target. ``` $ rg 'anyhow =' --no-filename --no-line-number | sort | uniq -c 44 anyhow = "1" ``` (Specifically the `anyhow = "*"` lines were giving me trouble with b/394932208 and cl/723721713, I can change this to standardize on something else if desired) Bug: b/394932208 Change-Id: Iea4fa3d020fe5646aa9f444de50645195a1b9778 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/6238753 Reviewed-by: Daniel Verkamp <[email protected]> Commit-Queue: Cody Schuffelen <[email protected]>
1 parent 3675690 commit 22e2cec

File tree

13 files changed

+13
-13
lines changed

13 files changed

+13
-13
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ all-android = [
489489
]
490490

491491
[dependencies]
492-
anyhow = "1.0.32"
492+
anyhow = "1"
493493
arch = { path = "arch" }
494494
argh = "0.1.10"
495495
argh_helpers = { path = "argh_helpers" }

base_tokio/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = ["The ChromiumOS Authors"]
55
edition = "2021"
66

77
[dependencies]
8-
anyhow = "*"
8+
anyhow = "1"
99
cfg-if = "1.0.0"
1010
futures = { version = "0.3" }
1111
libc = "*"

broker_ipc/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ crash-report = ["crash_report", "broker_ipc_product/crash-report"]
99
process-invariants = ["broker_ipc_product/process-invariants"]
1010

1111
[dependencies]
12-
anyhow = "1.0.32"
12+
anyhow = "1"
1313
base = { path = "../base" }
1414
crash_report = { path = "../vendor/generic/crash_report", optional = true }
1515
serde = { version = "1", features = ["derive"] }

cros_async/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ sync = { path = "../common/sync" } # provided by ebuild
2222
base = { path = "../base" } # provided by ebuild
2323
thiserror = "1.0.20"
2424
audio_streams = { path = "../common/audio_streams" } # provided by ebuild
25-
anyhow = "1.0"
25+
anyhow = "1"
2626
serde = "1"
2727
serde_keyvalue = { path = "../serde_keyvalue", features = ["argh_derive"] } # provided by ebuild
2828
static_assertions = "1.1"

crosvm_cli/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ edition = "2021"
77
[features]
88

99
[dependencies]
10-
anyhow = "1.0.32"
10+
anyhow = "1"
1111
cfg-if = "1.0.0"
1212

1313
[target.'cfg(windows)'.dependencies]

disk/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ qcow = []
1414
zstd-disk = ["zstd"]
1515

1616
[dependencies]
17-
anyhow = "*"
17+
anyhow = "1"
1818
async-trait = "0.1.36"
1919
base = { path = "../base" }
2020
cfg-if = "1.0.0"

rutabaga_gfx/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ winapi = {version = "0.3", features = ["winnt", "handleapi", "processthreadsapi"
3737

3838
[build-dependencies]
3939
pkg-config = "0.3"
40-
anyhow = "1.0.57"
40+
anyhow = "1"
4141

4242
[dev-dependencies]
4343
tempfile = "3"

tools/contrib/cros_tracing_analyser/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2021"
66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
9-
anyhow = "1.0.75"
9+
anyhow = "1"
1010
argh = "0.1"
1111
libtracecmd = "0.2"
1212
log = "0.4"

tools/contrib/vcpu_blocker_analyzer/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2021"
66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
9-
anyhow = "1.0"
9+
anyhow = "1"
1010
argh = "0.1"
1111
env_logger = "0.10"
1212
log = "0.4"

vendor/generic/broker_ipc/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ process-invariants = []
99
crash-report = ["crash_report"]
1010

1111
[dependencies]
12-
anyhow = "1.0.32"
12+
anyhow = "1"
1313
crash_report = { path = "../crash_report", optional = true }
1414
serde = { version = "1", features = ["derive"] }

vendor/generic/crash_report/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ crash-report = []
99
perfetto-system-backend = []
1010

1111
[dependencies]
12-
anyhow = "1.0.32"
12+
anyhow = "1"
1313
base = { path = "../../../base" } # provided by ebuild
1414
serde = { version = "1", features = ["derive"] }
1515

vendor/generic/crypto/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ edition = "2021"
88
rustcrypto = []
99

1010
[dependencies]
11-
anyhow = "1.0.32"
11+
anyhow = "1"
1212
base = { path = "../../../base" }
1313
serde = { version = "1", features = ["derive"] }
1414
serde_json = "1"

vm_memory/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2021"
66
include = ["src/**/*", "Cargo.toml"]
77

88
[dependencies]
9-
anyhow = "1.0.32"
9+
anyhow = "1"
1010
cfg-if = "1.0.0"
1111
cros_async = { path = "../cros_async" }
1212
data_model = { path = "../common/data_model" }

0 commit comments

Comments
 (0)