Skip to content

Commit

Permalink
Add a note to discourage the use of -Zminimal-versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Oct 28, 2019
1 parent 3ba5f27 commit aa0c999
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/doc/src/reference/unstable.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ generated if dev-dependencies are skipped.
* Original Issue: [#4100](https://github.com/rust-lang/cargo/issues/4100)
* Tracking Issue: [#5657](https://github.com/rust-lang/cargo/issues/5657)

> Note: It is not recommended to use this feature. Because it enforces minimal
> versions for all transitive dependencies, its usefulness is limited since
> not all external dependencies declare proper lower version bounds. It is
> intended that it will be changed in the future to only enforce minimal
> versions for direct dependencies.
When a `Cargo.lock` file is generated, the `-Z minimal-versions` flag will
resolve the dependencies to the minimum semver version that will satisfy the
requirements (instead of the greatest version).
Expand Down

0 comments on commit aa0c999

Please sign in to comment.