Bump clap from 3.0.7 to 3.1.1 (#1035)

* Bump clap from 3.0.7 to 3.1.1

Bumps [clap](https://github.com/clap-rs/clap) from 3.0.7 to 3.1.1.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.0.7...v3.1.1)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix up deprecated usages

* cargo fmt

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>
This commit is contained in:
dependabot[bot]
2022-02-23 08:31:24 +00:00
committed by GitHub
parent 719127cac3
commit 3b839476d9
6 changed files with 27 additions and 27 deletions
+12 -12
View File
@@ -1146,9 +1146,9 @@ dependencies = [
[[package]] [[package]]
name = "clap" name = "clap"
version = "3.0.7" version = "3.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "12e8611f9ae4e068fa3e56931fded356ff745e70987ff76924a6e0ab1c8ef2e3" checksum = "6d76c22c9b9b215eeb8d016ad3a90417bd13cb24cf8142756e6472445876cab7"
dependencies = [ dependencies = [
"atty", "atty",
"bitflags", "bitflags",
@@ -1163,9 +1163,9 @@ dependencies = [
[[package]] [[package]]
name = "clap_derive" name = "clap_derive"
version = "3.0.6" version = "3.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "517358c28fcef6607bf6f76108e02afad7e82297d132a6b846dcc1fc3efcd153" checksum = "5fd1122e63869df2cb309f449da1ad54a7c6dfeb7c7e6ccd8e0825d9eb93bb72"
dependencies = [ dependencies = [
"heck 0.4.0", "heck 0.4.0",
"proc-macro-error", "proc-macro-error",
@@ -1528,7 +1528,7 @@ dependencies = [
name = "cumulus-client-cli" name = "cumulus-client-cli"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"clap 3.0.7", "clap 3.1.1",
"sc-cli", "sc-cli",
"sc-service", "sc-service",
] ]
@@ -2639,7 +2639,7 @@ source = "git+https://github.com/paritytech/substrate?branch=master#42b2d623d058
dependencies = [ dependencies = [
"Inflector", "Inflector",
"chrono", "chrono",
"clap 3.0.7", "clap 3.1.1",
"frame-benchmarking", "frame-benchmarking",
"frame-support", "frame-support",
"handlebars", "handlebars",
@@ -6332,7 +6332,7 @@ dependencies = [
name = "parachain-template-node" name = "parachain-template-node"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"clap 3.0.7", "clap 3.1.1",
"cumulus-client-cli", "cumulus-client-cli",
"cumulus-client-collator", "cumulus-client-collator",
"cumulus-client-consensus-aura", "cumulus-client-consensus-aura",
@@ -6946,7 +6946,7 @@ name = "polkadot-cli"
version = "0.9.17" version = "0.9.17"
source = "git+https://github.com/paritytech/polkadot?branch=master#daec96f748e2a3c2c8ee4ec23f0c31b6daade800" source = "git+https://github.com/paritytech/polkadot?branch=master#daec96f748e2a3c2c8ee4ec23f0c31b6daade800"
dependencies = [ dependencies = [
"clap 3.0.7", "clap 3.1.1",
"frame-benchmarking-cli", "frame-benchmarking-cli",
"futures 0.3.21", "futures 0.3.21",
"log", "log",
@@ -7001,7 +7001,7 @@ dependencies = [
"assert_cmd", "assert_cmd",
"async-trait", "async-trait",
"canvas-kusama-runtime", "canvas-kusama-runtime",
"clap 3.0.7", "clap 3.1.1",
"cumulus-client-cli", "cumulus-client-cli",
"cumulus-client-consensus-aura", "cumulus-client-consensus-aura",
"cumulus-client-consensus-common", "cumulus-client-consensus-common",
@@ -9184,7 +9184,7 @@ version = "0.10.0-dev"
source = "git+https://github.com/paritytech/substrate?branch=master#42b2d623d058197aebc3c737fb44fbbf278a85b4" source = "git+https://github.com/paritytech/substrate?branch=master#42b2d623d058197aebc3c737fb44fbbf278a85b4"
dependencies = [ dependencies = [
"chrono", "chrono",
"clap 3.0.7", "clap 3.1.1",
"fdlimit", "fdlimit",
"futures 0.3.21", "futures 0.3.21",
"hex", "hex",
@@ -11972,7 +11972,7 @@ dependencies = [
"chrono", "chrono",
"lazy_static", "lazy_static",
"matchers", "matchers",
"parking_lot 0.10.2", "parking_lot 0.11.2",
"regex", "regex",
"serde", "serde",
"serde_json", "serde_json",
@@ -12061,7 +12061,7 @@ name = "try-runtime-cli"
version = "0.10.0-dev" version = "0.10.0-dev"
source = "git+https://github.com/paritytech/substrate?branch=master#42b2d623d058197aebc3c737fb44fbbf278a85b4" source = "git+https://github.com/paritytech/substrate?branch=master#42b2d623d058197aebc3c737fb44fbbf278a85b4"
dependencies = [ dependencies = [
"clap 3.0.7", "clap 3.1.1",
"jsonrpsee 0.4.1", "jsonrpsee 0.4.1",
"log", "log",
"parity-scale-codec", "parity-scale-codec",
+1 -1
View File
@@ -5,7 +5,7 @@ authors = ["Parity Technologies <admin@parity.io>"]
edition = "2021" edition = "2021"
[dependencies] [dependencies]
clap = { version = "3.0", features = ["derive"] } clap = { version = "3.1", features = ["derive"] }
# Substrate dependencies # Substrate dependencies
sc-cli = { git = "https://github.com/paritytech/substrate", branch = "master" } sc-cli = { git = "https://github.com/paritytech/substrate", branch = "master" }
+1 -1
View File
@@ -27,7 +27,7 @@ runtime-benchmarks = [
try-runtime = ["parachain-template-runtime/try-runtime"] try-runtime = ["parachain-template-runtime/try-runtime"]
[dependencies] [dependencies]
clap = { version = "3.0", features = ["derive"] } clap = { version = "3.1", features = ["derive"] }
derive_more = "0.99.2" derive_more = "0.99.2"
log = "0.4.14" log = "0.4.14"
codec = { package = "parity-scale-codec", version = "2.0.0" } codec = { package = "parity-scale-codec", version = "2.0.0" }
+6 -6
View File
@@ -1,5 +1,5 @@
use crate::chain_spec; use crate::chain_spec;
use clap::{AppSettings, Parser}; use clap::Parser;
use std::path::PathBuf; use std::path::PathBuf;
/// Sub-commands supported by the collator. /// Sub-commands supported by the collator.
@@ -75,11 +75,11 @@ pub struct ExportGenesisWasmCommand {
} }
#[derive(Debug, Parser)] #[derive(Debug, Parser)]
#[clap(setting( #[clap(
AppSettings::PropagateVersion | propagate_version = true,
AppSettings::ArgsNegateSubcommands | args_conflicts_with_subcommands = true,
AppSettings::SubcommandsNegateReqs, subcommand_negates_reqs = true
))] )]
pub struct Cli { pub struct Cli {
#[clap(subcommand)] #[clap(subcommand)]
pub subcommand: Option<Subcommand>, pub subcommand: Option<Subcommand>,
+1 -1
View File
@@ -10,7 +10,7 @@ name = "polkadot-collator"
path = "src/main.rs" path = "src/main.rs"
[dependencies] [dependencies]
clap = { version = "3.0", features = ["derive"] } clap = { version = "3.1", features = ["derive"] }
futures = { version = "0.3.1", features = ["compat"] } futures = { version = "0.3.1", features = ["compat"] }
log = "0.4.8" log = "0.4.8"
codec = { package = "parity-scale-codec", version = "2.3.0" } codec = { package = "parity-scale-codec", version = "2.3.0" }
+6 -6
View File
@@ -15,7 +15,7 @@
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>. // along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
use crate::chain_spec; use crate::chain_spec;
use clap::{AppSettings, Parser}; use clap::Parser;
use sc_cli; use sc_cli;
use std::path::PathBuf; use std::path::PathBuf;
@@ -96,11 +96,11 @@ pub struct ExportGenesisWasmCommand {
} }
#[derive(Debug, Parser)] #[derive(Debug, Parser)]
#[clap(setting( #[clap(
AppSettings::PropagateVersion | propagate_version = true,
AppSettings::ArgsNegateSubcommands | args_conflicts_with_subcommands = true,
AppSettings::SubcommandsNegateReqs subcommand_negates_reqs = true
))] )]
pub struct Cli { pub struct Cli {
#[clap(subcommand)] #[clap(subcommand)]
pub subcommand: Option<Subcommand>, pub subcommand: Option<Subcommand>,