You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -296,7 +296,7 @@ subcommands:
296
296
297
297
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:
298
298
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"]}`.
300
300
301
301
Finally we create our `main.rs` file just like we would have with the previous two examples:
302
302
@@ -416,7 +416,7 @@ For full usage, add `clap` as a dependency in your `Cargo.toml` () to use from c
416
416
417
417
```toml
418
418
[dependencies]
419
-
clap = "~2.27"
419
+
clap = "~2.28"
420
420
```
421
421
422
422
(**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`:
440
440
441
441
```toml
442
442
[dependencies.clap]
443
-
version = "2.27"
443
+
version = "2.28"
444
444
default-features = false
445
445
```
446
446
447
447
You can also selectively enable only the features you'd like to include, by adding:
448
448
449
449
```toml
450
450
[dependencies.clap]
451
-
version = "2.27"
451
+
version = "2.28"
452
452
default-features = false
453
453
454
454
# 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
496
496
497
497
```toml
498
498
[dependencies]
499
-
clap = "~2.27"
499
+
clap = "~2.28"
500
500
```
501
501
502
502
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
513
513
514
514
# In one Cargo.toml
515
515
[dependencies]
516
-
clap = "~2.27.0"
516
+
clap = "~2.28.0"
517
517
518
518
# In another Cargo.toml
519
519
[dependencies]
520
-
clap = "2.27"
520
+
clap = "2.28"
521
521
```
522
522
523
523
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.
0 commit comments