Skip to content

Commit ffe72a0

Browse files
committed
upgrade to clap 4.0
1 parent 3f3aa3d commit ffe72a0

File tree

4 files changed

+28
-54
lines changed

4 files changed

+28
-54
lines changed

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"

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
@@ -64,7 +64,7 @@ struct TargetMatrixElement<'a> {
6464
#[derive(Parser, Debug)]
6565
#[clap(no_binary_name = true)]
6666
struct TargetMatrixArgs {
67-
#[clap(long, short, multiple_values = true)]
67+
#[clap(long, short, num_args = 0..)]
6868
target: Vec<String>,
6969
#[clap(long, value_parser = BoolishValueParser::new())]
7070
std: Option<bool>,
@@ -74,7 +74,7 @@ struct TargetMatrixArgs {
7474
dylib: Option<bool>,
7575
#[clap(long, value_parser = BoolishValueParser::new())]
7676
run: Option<bool>,
77-
#[clap(long, short, multiple_values = true)]
77+
#[clap(long, short, num_args = 0..)]
7878
runners: Vec<String>,
7979
#[clap(long)]
8080
none: bool,

0 commit comments

Comments
 (0)