Skip to content

Commit

Permalink
chore: increase version
Browse files Browse the repository at this point in the history
MSRV is now Rust 1.46
  • Loading branch information
kbknapp committed Nov 30, 2021
1 parent 2bb9180 commit d51ae89
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,8 @@
<a name="v2.34.0"></a>
## v2.34.0 (2021-11-30)

- Updates to Rust 2018 edition and bumps the MSRV to Rust 1.46

<a name="v2.33.4"></a>
### v2.33.4 (2021-11-29)

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "clap"
version = "2.33.4"
version = "2.34.0"
authors = ["Kevin K. <kbknapp@gmail.com>"]
exclude = ["examples/*", "clap-test/*", "tests/*", "benches/*", "*.png", "clap-perf/*", "*.dot"]
repository = "https://github.com/clap-rs/clap"
Expand Down
14 changes: 7 additions & 7 deletions README.md
Expand Up @@ -246,7 +246,7 @@ subcommands:

Since this feature requires additional dependencies that not everyone may want, it is *not* compiled in by default and we need to enable a feature flag in Cargo.toml:

Simply change your `clap = "2.33"` to `clap = {version = "2.33", features = ["yaml"]}`.
Simply change your `clap = "2.34"` to `clap = {version = "2.34", features = ["yaml"]}`.

Finally we create our `main.rs` file just like we would have with the previous two examples:

Expand Down Expand Up @@ -347,7 +347,7 @@ For full usage, add `clap` as a dependency in your `Cargo.toml` () to use from c

```toml
[dependencies]
clap = "~2.33"
clap = "~2.34"
```

(**note**: If you are concerned with supporting a minimum version of Rust that is *older* than the current stable Rust minus 2 stable releases, it's recommended to use the `~major.minor.patch` style versions in your `Cargo.toml` which will only update the patch version automatically. For more information see the [Compatibility Policy](#compatibility-policy))
Expand All @@ -370,15 +370,15 @@ To disable these, add this to your `Cargo.toml`:

```toml
[dependencies.clap]
version = "2.33"
version = "2.34"
default-features = false
```

You can also selectively enable only the features you'd like to include, by adding:

```toml
[dependencies.clap]
version = "2.33"
version = "2.34"
default-features = false

# Cherry-pick the features you'd like to use
Expand Down Expand Up @@ -427,7 +427,7 @@ In order to keep from being surprised of breaking changes, it is **highly** reco

```toml
[dependencies]
clap = "~2.33"
clap = "~2.34"
```

This will cause *only* the patch version to be updated upon a `cargo update` call, and therefore cannot break due to new features, or bumped minimum versions of Rust.
Expand All @@ -444,11 +444,11 @@ Right now Cargo's version resolution is pretty naive, it's just a brute-force se
# In one Cargo.toml
[dependencies]
clap = "~2.33.0"
clap = "~2.34.0"
# In another Cargo.toml
[dependencies]
clap = "2.33.0"
clap = "2.34.0"
```

This is inherently an unresolvable crate graph in Cargo right now. Cargo requires there's only one major version of a crate, and being in the same workspace these two crates must share a version. This is impossible in this location, though, as these version constraints cannot be met.
Expand Down
10 changes: 5 additions & 5 deletions src/lib.rs
Expand Up @@ -366,7 +366,7 @@
//! * **Red** Color: **NOT** included by default (must use cargo `features` to enable)
//! * **Blue** Color: Dev dependency, only used while developing.
//!
//! ![clap dependencies](https://github.com/clap-rs/clap/blob/v2.33.1/clap_dep_graph.png)
//! ![clap dependencies](https://github.com/clap-rs/clap/blob/v2.34.0/clap_dep_graph.png)
//!
//! ### More Information
//!
Expand All @@ -391,7 +391,7 @@
//! `clap`. You can either add it to the [examples/] directory, or file an issue and tell
//! me. I'm all about giving credit where credit is due :)
//!
//! Please read [CONTRIBUTING.md](https://github.com/clap-rs/clap/blob/v2.33.1/.github/CONTRIBUTING.md) before you start contributing.
//! Please read [CONTRIBUTING.md](https://github.com/clap-rs/clap/blob/v2.34.0/.github/CONTRIBUTING.md) before you start contributing.
//!
//!
//! ### Testing Code
Expand Down Expand Up @@ -512,12 +512,12 @@
//! `clap` is licensed under the MIT license. Please read the [LICENSE-MIT][license] file in
//! this repository for more information.
//!
//! [examples/]: https://github.com/clap-rs/clap/tree/v2.33.1/examples
//! [examples/]: https://github.com/clap-rs/clap/tree/v2.34.0/examples
//! [video tutorials]: https://www.youtube.com/playlist?list=PLza5oFLQGTl2Z5T8g1pRkIynR3E0_pc7U
//! [license]: https://github.com/clap-rs/clap/blob/v2.33.1/LICENSE-MIT
//! [license]: https://github.com/clap-rs/clap/blob/v2.34.0/LICENSE-MIT

#![crate_type = "lib"]
#![doc(html_root_url = "https://docs.rs/clap/2.33.4")]
#![doc(html_root_url = "https://docs.rs/clap/2.34.0")]
#![deny(
missing_docs,
missing_debug_implementations,
Expand Down

0 comments on commit d51ae89

Please sign in to comment.