Skip to content

Commit 62b8a69

Browse files
Merge #1038
1038: upgrade to clap 4.0 r=Alexhuszagh a=Emilgardis Co-authored-by: Emil Gardström <emil.gardstrom@gmail.com>
2 parents 4facf8f + ffe72a0 commit 62b8a69

File tree

7 files changed

+36
-57
lines changed

7 files changed

+36
-57
lines changed

.changes/1038.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[
2+
{
3+
"description": "bump MSRV to 1.60",
4+
"type": "internal"
5+
}
6+
]

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ jobs:
5252
- uses: ./.github/actions/setup-rust
5353
with:
5454
components: clippy
55-
toolchain: 1.58.1 # MSRV, Minimally Supported Rust Version. Make sure to update README.md
56-
55+
toolchain: 1.60.0 # MSRV, Minimally Supported Rust Version. Make sure to update README.md
5756
- name: Run clippy
5857
run: cargo clippy --locked --all-targets --all-features --workspace -- -D warnings
5958
test:

Cargo.lock

Lines changed: 24 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ members = ["xtask"]
2727

2828
[dependencies]
2929
atty = "0.2"
30-
clap = { version = "3.2.22", features = ["derive", "unstable-v4"] }
30+
clap = { version = "4.0", features = ["derive"] }
3131
color-eyre = { version = "0.6.2", default-features = false, features = ["track-caller"] }
3232
eyre = "0.6"
3333
thiserror = "1"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ $ QEMU_STRACE=1 cross run --target aarch64-unknown-linux-gnu
431431

432432
## Minimum Supported Rust Version (MSRV)
433433

434-
This crate is guaranteed to compile on stable Rust 1.58.1 and up. It *might*
434+
This crate is guaranteed to compile on stable Rust 1.60.0 and up. It *might*
435435
compile with older versions but that may change in any new patch release.
436436

437437
Some cross-compilation targets require a later Rust version, and using Xargo

xtask/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ cross = { path = "..", features = ["dev"] }
1313
walkdir = "2.3.2"
1414
color-eyre = "0.6.2"
1515
eyre = "0.6.8"
16-
clap = { version = "3.2.22", features = ["derive", "env", "unstable-v4"] }
16+
clap = { version = "4.0", features = ["derive", "env"] }
1717
which = { version = "4.2", default_features = false }
1818
serde = { version = "1", features = ["derive"] }
1919
serde_json = "1.0"

xtask/src/ci/target_matrix.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ struct TargetMatrixElement<'a> {
6666
#[derive(Parser, Debug)]
6767
#[clap(no_binary_name = true)]
6868
struct TargetMatrixArgs {
69-
#[clap(long, short, multiple_values = true)]
69+
#[clap(long, short, num_args = 0..)]
7070
target: Vec<String>,
7171
#[clap(long, value_parser = BoolishValueParser::new())]
7272
std: Option<bool>,
@@ -76,7 +76,7 @@ struct TargetMatrixArgs {
7676
dylib: Option<bool>,
7777
#[clap(long, value_parser = BoolishValueParser::new())]
7878
run: Option<bool>,
79-
#[clap(long, short, multiple_values = true)]
79+
#[clap(long, short, num_args = 0..)]
8080
runners: Vec<String>,
8181
#[clap(long)]
8282
none: bool,

0 commit comments

Comments
 (0)