Skip to content

Commit

Permalink
docs: sync README version numbers with crate version
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeisler committed Sep 23, 2017
1 parent 6e94899 commit 5536361
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ For full usage, add `clap` as a dependency in your `Cargo.toml` () to use from c

```toml
[dependencies]
clap = "~2.19.0"
clap = "~2.26"
```

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

```toml
[dependencies.clap]
version = "2.19"
version = "2.26"
default-features = false
```

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

```toml
[dependencies.clap]
version = "2.19"
version = "2.26"
default-features = false
# Cherry-pick the features you'd like to use
Expand Down Expand Up @@ -629,7 +629,7 @@ In order to keep from being surprised of breaking changes, it is **highly** reco

```toml
[dependencies]
clap = "~2.19.0"
clap = "~2.26"
```

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 Down

0 comments on commit 5536361

Please sign in to comment.