Skip to content

Commit

Permalink
Merge pull request clap-rs#3736 from epage/edition
Browse files Browse the repository at this point in the history
fix: Switch to 2021 edition
  • Loading branch information
epage committed May 18, 2022
2 parents 28ee3d3 + 2abb680 commit 17ec775
Show file tree
Hide file tree
Showing 6 changed files with 104 additions and 88 deletions.
30 changes: 15 additions & 15 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
[workspace]
members = [
"clap_derive",
"clap_lex",
"clap_complete",
"clap_complete_fig",
"clap_mangen",
"clap_derive",
"clap_lex",
"clap_complete",
"clap_complete_fig",
"clap_mangen",
]

[package]
name = "clap"
version = "3.1.18"
rust-version = "1.56.0" # MSRV
description = "A simple to use, efficient, and full-featured Command Line Argument Parser"
repository = "https://github.com/clap-rs/clap"
documentation = "https://docs.rs/clap/"
categories = ["command-line-interface"]
keywords = [
"argument",
"cli",
"arg",
"parser",
"parse"
"argument",
"cli",
"arg",
"parser",
"parse"
]
edition = "2018"
license = "MIT OR Apache-2.0"
readme = "README.md"
edition = "2021"
rust-version = "1.56.0" # MSRV
include = [
"build.rs",
"src/**/*",
Expand Down Expand Up @@ -59,9 +59,9 @@ pre-release-replacements = [

[features]
default = [
"std",
"color",
"suggestions",
"std",
"color",
"suggestions",
]
debug = ["clap_derive/debug", "backtrace"] # Enables debug messages
unstable-doc = ["derive", "cargo", "wrap_help", "yaml", "env", "unicode", "regex", "unstable-replace", "unstable-multicall", "unstable-grouped"] # for docs.rs
Expand Down
33 changes: 17 additions & 16 deletions clap_complete/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
[package]
name = "clap_complete"
version = "3.1.4"
edition = "2018"
description = "Generate shell completion scripts for your clap::Command"
repository = "https://github.com/clap-rs/clap/tree/master/clap_complete"
documentation = "https://docs.rs/clap_complete"
categories = ["command-line-interface"]
keywords = [
"clap",
"cli",
"completion",
"bash",
]
license = "MIT OR Apache-2.0"
readme = "README.md"
edition = "2021"
rust-version = "1.56.0" # MSRV
include = [
"build.rs",
"src/**/*",
Expand All @@ -11,18 +24,9 @@ include = [
"benches/**/*",
"examples/**/*"
]
description = "Generate shell completion scripts for your clap::Command"
repository = "https://github.com/clap-rs/clap/tree/master/clap_complete"
documentation = "https://docs.rs/clap_complete"
keywords = [
"clap",
"cli",
"completion",
"bash",
]
categories = ["command-line-interface"]
license = "MIT OR Apache-2.0"
readme = "README.md"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]

[package.metadata.release]
pre-release-replacements = [
Expand Down Expand Up @@ -61,6 +65,3 @@ required-features = ["unstable-dynamic"]
default = []
unstable-dynamic = ["clap_lex", "shlex", "unicode-xid", "os_str_bytes", "clap/derive", "is_executable", "pathdiff"]
debug = ["clap/debug"]

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
29 changes: 16 additions & 13 deletions clap_complete_fig/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
[package]
name = "clap_complete_fig"
version = "3.1.5"
edition = "2018"
include = [
"src/**/*",
"Cargo.toml",
"LICENSE-*",
"README.md"
]
description = "A generator library used with clap for Fig completion scripts"
repository = "https://github.com/clap-rs/clap/tree/master/clap_complete_fig"
documentation = "https://docs.rs/clap_complete_fig"
categories = ["command-line-interface"]
keywords = [
"clap",
"cli",
"generate",
"completion",
"fig",
"clap",
"cli",
"completion",
"fig",
]
categories = ["command-line-interface"]
license = "MIT OR Apache-2.0"
readme = "README.md"
edition = "2021"
rust-version = "1.56.0" # MSRV
include = [
"build.rs",
"src/**/*",
"Cargo.toml",
"LICENSE*",
"README.md",
"benches/**/*",
"examples/**/*"
]

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
Expand Down
36 changes: 20 additions & 16 deletions clap_derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,26 +1,33 @@
[package]
name = "clap_derive"
version = "3.1.18"
edition = "2018"
include = [
"src/**/*",
"Cargo.toml",
"LICENSE-*",
"README.md"
]
description = "Parse command line argument by defining a struct, derive crate."
repository = "https://github.com/clap-rs/clap/tree/master/clap_derive"
documentation = "https://docs.rs/clap_derive"
categories = ["command-line-interface", "development-tools::procedural-macro-helpers"]
keywords = [
"clap",
"cli",
"parse",
"derive",
"proc_macro"
"clap",
"cli",
"parse",
"derive",
"proc_macro"
]
categories = ["command-line-interface", "development-tools::procedural-macro-helpers"]
license = "MIT OR Apache-2.0"
readme = "README.md"
edition = "2021"
rust-version = "1.56.0" # MSRV
include = [
"build.rs",
"src/**/*",
"Cargo.toml",
"LICENSE*",
"README.md",
"benches/**/*",
"examples/**/*"
]

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]

[package.metadata.release]
shared-version = true
Expand All @@ -45,6 +52,3 @@ proc-macro-error = "1"
default = []
debug = []
unstable-v4 = []

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
30 changes: 17 additions & 13 deletions clap_lex/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
[package]
name = "clap_lex"
version = "0.2.0"
edition = "2018"
include = [
"src/**/*",
"Cargo.toml",
"LICENSE-*",
"README.md"
]
description = "Minimal, flexible command line parser"
repository = "https://github.com/clap-rs/clap/tree/master/clap_lex"
documentation = "https://docs.rs/clap_lex"
categories = ["command-line-interface"]
keywords = [
"argument",
"cli",
"arg",
"parser",
"parse"
"argument",
"cli",
"arg",
"parser",
"parse"
]
categories = ["command-line-interface"]
license = "MIT OR Apache-2.0"
readme = "README.md"
edition = "2021"
rust-version = "1.56.0" # MSRV
include = [
"build.rs",
"src/**/*",
"Cargo.toml",
"LICENSE*",
"README.md",
"benches/**/*",
"examples/**/*"
]

[package.metadata.release]
pre-release-replacements = [
Expand Down
34 changes: 19 additions & 15 deletions clap_mangen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@
[package]
name = "clap_mangen"
version = "0.1.6"
edition = "2018"
include = [
"src/**/*",
"Cargo.toml",
"LICENSE-*",
"README.md"
]
description = "A manpage generator for clap"
repository = "https://github.com/clap-rs/clap/tree/master/clap_mangen"
documentation = "https://docs.rs/clap_mangen"
categories = ["command-line-interface"]
keywords = [
"clap",
"cli",
"generate",
"manpage",
"clap",
"cli",
"generate",
"manpage",
]
categories = ["command-line-interface"]
license = "MIT OR Apache-2.0"
readme = "README.md"
edition = "2021"
rust-version = "1.56.0" # MSRV
include = [
"build.rs",
"src/**/*",
"Cargo.toml",
"LICENSE*",
"README.md",
"benches/**/*",
"examples/**/*"
]

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]

[package.metadata.release]
pre-release-replacements = [
Expand All @@ -45,6 +52,3 @@ clap = { path = "../", version = "3.1.10", default-features = false, features =
[features]
default = []
debug = ["clap/debug"]

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]

0 comments on commit 17ec775

Please sign in to comment.