Skip to content

Commit ce6ca49

Browse files
committed
docs: changes the demo version to 2.28 to stay in sync
1 parent 9ef3d82 commit ce6ca49

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ subcommands:
296296
297297
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:
298298
299-
Simply change your `clap = "2.27"` to `clap = {version = "2.27", features = ["yaml"]}`.
299+
Simply change your `clap = "2.28"` to `clap = {version = "2.87", features = ["yaml"]}`.
300300

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

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

417417
```toml
418418
[dependencies]
419-
clap = "~2.27"
419+
clap = "~2.28"
420420
```
421421

422422
(**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,15 +440,15 @@ To disable these, add this to your `Cargo.toml`:
440440

441441
```toml
442442
[dependencies.clap]
443-
version = "2.27"
443+
version = "2.28"
444444
default-features = false
445445
```
446446

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

449449
```toml
450450
[dependencies.clap]
451-
version = "2.27"
451+
version = "2.28"
452452
default-features = false
453453
454454
# 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
496496

497497
```toml
498498
[dependencies]
499-
clap = "~2.27"
499+
clap = "~2.28"
500500
```
501501

502502
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
513513
514514
# In one Cargo.toml
515515
[dependencies]
516-
clap = "~2.27.0"
516+
clap = "~2.28.0"
517517
518518
# In another Cargo.toml
519519
[dependencies]
520-
clap = "2.27"
520+
clap = "2.28"
521521
```
522522

523523
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.

src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@
513513
//! this repository for more information.
514514
515515
#![crate_type= "lib"]
516-
#![doc(html_root_url = "https://docs.rs/clap/2.27.2")]
516+
#![doc(html_root_url = "https://docs.rs/clap/2.28.0")]
517517
#![deny(
518518
missing_docs,
519519
missing_debug_implementations,
@@ -603,7 +603,7 @@ mod derive {
603603

604604

605605
/// @TODO @release @docs
606-
fn try_parse_from<I, T>(argv: I) -> Result<Self, clap::Error>
606+
fn try_parse_from<I, T>(argv: I) -> Result<Self, clap::Error>
607607
where I: IntoIterator<Item = T>,
608608
T: Into<OsString> + Clone
609609
{
@@ -628,4 +628,4 @@ mod derive {
628628

629629
/// @TODO @release @docs
630630
pub trait ArgEnum { }
631-
}
631+
}

0 commit comments

Comments
 (0)