From ce6ca492c7510ab6474075806360b96081b021a9 Mon Sep 17 00:00:00 2001 From: Kevin K Date: Mon, 27 Nov 2017 20:11:59 -0500 Subject: [PATCH] docs: changes the demo version to 2.28 to stay in sync --- README.md | 14 +++++++------- src/lib.rs | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 6a0edb10641..dd7716dfe61 100644 --- a/README.md +++ b/README.md @@ -296,7 +296,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.27"` to `clap = {version = "2.27", features = ["yaml"]}`. +Simply change your `clap = "2.28"` to `clap = {version = "2.87", features = ["yaml"]}`. Finally we create our `main.rs` file just like we would have with the previous two examples: @@ -416,7 +416,7 @@ For full usage, add `clap` as a dependency in your `Cargo.toml` () to use from c ```toml [dependencies] -clap = "~2.27" +clap = "~2.28" ``` (**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)) @@ -440,7 +440,7 @@ To disable these, add this to your `Cargo.toml`: ```toml [dependencies.clap] -version = "2.27" +version = "2.28" default-features = false ``` @@ -448,7 +448,7 @@ You can also selectively enable only the features you'd like to include, by addi ```toml [dependencies.clap] -version = "2.27" +version = "2.28" default-features = false # Cherry-pick the features you'd like to use @@ -496,7 +496,7 @@ In order to keep from being surprised of breaking changes, it is **highly** reco ```toml [dependencies] -clap = "~2.27" +clap = "~2.28" ``` 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. @@ -513,11 +513,11 @@ Right now Cargo's version resolution is pretty naive, it's just a brute-force se # In one Cargo.toml [dependencies] -clap = "~2.27.0" +clap = "~2.28.0" # In another Cargo.toml [dependencies] -clap = "2.27" +clap = "2.28" ``` 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. diff --git a/src/lib.rs b/src/lib.rs index ee582234cb9..80e5a17f01a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -513,7 +513,7 @@ //! this repository for more information. #![crate_type= "lib"] -#![doc(html_root_url = "https://docs.rs/clap/2.27.2")] +#![doc(html_root_url = "https://docs.rs/clap/2.28.0")] #![deny( missing_docs, missing_debug_implementations, @@ -603,7 +603,7 @@ mod derive { /// @TODO @release @docs - fn try_parse_from(argv: I) -> Result + fn try_parse_from(argv: I) -> Result where I: IntoIterator, T: Into + Clone { @@ -628,4 +628,4 @@ mod derive { /// @TODO @release @docs pub trait ArgEnum { } -} \ No newline at end of file +}