mirror of
https://github.com/clap-rs/clap
synced 2025-03-04 23:37:32 +00:00
docs: sync README version numbers with crate version
This commit is contained in:
parent
6e948994a6
commit
5536361bcd
1 changed files with 4 additions and 4 deletions
|
@ -472,7 +472,7 @@ For full usage, add `clap` as a dependency in your `Cargo.toml` () to use from c
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[dependencies]
|
[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))
|
(**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))
|
||||||
|
@ -495,7 +495,7 @@ To disable these, add this to your `Cargo.toml`:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[dependencies.clap]
|
[dependencies.clap]
|
||||||
version = "2.19"
|
version = "2.26"
|
||||||
default-features = false
|
default-features = false
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -503,7 +503,7 @@ You can also selectively enable only the features you'd like to include, by addi
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[dependencies.clap]
|
[dependencies.clap]
|
||||||
version = "2.19"
|
version = "2.26"
|
||||||
default-features = false
|
default-features = false
|
||||||
|
|
||||||
# Cherry-pick the features you'd like to use
|
# Cherry-pick the features you'd like to use
|
||||||
|
@ -629,7 +629,7 @@ In order to keep from being surprised of breaking changes, it is **highly** reco
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[dependencies]
|
[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.
|
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.
|
||||||
|
|
Loading…
Add table
Reference in a new issue