Misc Cargo.toml tweaks (#248)

* Move the `xtask` to edition 2021 too

* Dont rely on feature unification for clap

* Add `rust-version` to the `Cargo.toml`
This commit is contained in:
CosmicHorror 2023-10-20 17:06:38 -06:00 committed by GitHub
parent b542702820
commit d0fd7f6ac3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 6 deletions

View file

@ -1,14 +1,21 @@
[workspace]
package.version = "0.7.6"
members = [
".",
"xtask",
]
[workspace.dependencies.clap]
version = "4.4.3"
features = ["derive", "deprecated", "wrap_help"]
[workspace.package]
edition = "2021"
version = "0.7.6"
[package]
name = "sd"
version.workspace = true
edition = "2021"
edition.workspace = true
authors = ["Gregory <gregory.mkv@gmail.com>"]
description = "An intuitive find & replace CLI"
readme = "README.md"
@ -17,6 +24,7 @@ license = "MIT"
homepage = "https://github.com/chmln/sd"
repository = "https://github.com/chmln/sd.git"
categories = ["command-line-utilities", "text-processing", "development-tools"]
rust-version = "1.70.0"
[dependencies]
regex = "1.9.5"
@ -29,7 +37,7 @@ globwalk = "0.8.1"
ignore = "0.4.20"
ansi_term = "0.12.1"
is-terminal = "0.4.9"
clap = { version = "4.4.3", features = ["derive", "deprecated", "wrap_help"] }
clap.workspace = true
[dev-dependencies]
assert_cmd = "2.0.12"

View file

@ -8,7 +8,7 @@
1. [ ] Regenerate static assets
- `$ cargo xtask gen`
1. [ ] Update `rust-version` in `Cargo.toml`
- `$ cargo msrv --min 1.40 -- cargo check`
- `$ cargo msrv --min 1.60 -- cargo check`
1. [ ] Bump `version` in `Cargo.toml`
1. [ ] Update the `CHANGELOG.md`
1. [ ] Merge changes through a PR to make sure that CI passes

View file

@ -1,11 +1,11 @@
[package]
name = "xtask"
version.workspace = true
edition = "2021"
edition.workspace = true
publish = false
[dependencies]
clap = "4.4.3"
clap.workspace = true
clap_complete = "4.4.3"
clap_mangen = "0.2.14"
roff = "0.2.1"