Skip to content

Commit d9a2e6c

Browse files
authored
build(deps): Update clap to v4 (libp2p#3015)
1 parent 3371d7c commit d9a2e6c

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ libp2p-gossipsub = { version = "0.42.1", path = "protocols/gossipsub", optional
138138
async-std = { version = "1.6.2", features = ["attributes"] }
139139
async-trait = "0.1"
140140
env_logger = "0.9.0"
141-
clap = { version = "3.1.6", features = ["derive"] }
141+
clap = { version = "4.0.13", features = ["derive"] }
142142
tokio = { version = "1.15", features = ["io-util", "io-std", "macros", "rt", "rt-multi-thread"] }
143143

144144
[workspace]

misc/keygen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ categories = ["network-programming", "asynchronous"]
1010
publish = false
1111

1212
[dependencies]
13-
clap = {version = "3.1.6", features = ["derive"]}
13+
clap = { version = "4.0.13", features = ["derive"] }
1414
zeroize = "1"
1515
serde = { version = "1.0.136", features = ["derive"] }
1616
serde_json = "1.0.79"

misc/keygen/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ enum Command {
2727
/// Read from config file
2828
From {
2929
/// Provide a IPFS config file
30-
#[clap(parse(from_os_str))]
30+
#[clap(value_parser)]
3131
config: PathBuf,
3232
},
3333
/// Generate random

protocols/autonat/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ prost = "0.11"
2828
[dev-dependencies]
2929
async-std = { version = "1.10", features = ["attributes"] }
3030
env_logger = "0.9"
31-
clap = {version = "3.1.6", features = ["derive"]}
31+
clap = { version = "4.0.13", features = ["derive"] }
3232
libp2p = { path = "../..", features = ["full"] }

protocols/dcutr/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ prost-build = "0.11"
3232
env_logger = "0.9.0"
3333
libp2p = { path = "../..", features = ["full"] }
3434
rand = "0.8"
35-
clap = {version = "3.1.6", features = ["derive"]}
35+
clap = { version = "4.0.13", features = ["derive"] }

protocols/dcutr/examples/dcutr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ struct Opts {
6060
remote_peer_id: Option<PeerId>,
6161
}
6262

63-
#[derive(Debug, Parser, PartialEq)]
63+
#[derive(Clone, Debug, PartialEq, Parser)]
6464
enum Mode {
6565
Dial,
6666
Listen,

protocols/relay/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ prost-build = "0.11"
3636
env_logger = "0.9.0"
3737
libp2p = { path = "../..", features = ["full"] }
3838
quickcheck = { package = "quickcheck-ext", path = "../../misc/quickcheck-ext" }
39-
clap = {version = "3.1.6", features = ["derive"]}
39+
clap = { version = "4.0.13", features = ["derive"] }

0 commit comments

Comments
 (0)