Skip to content

Commit 9a935d5

Browse files
committed
Auto merge of #7549 - ehuss:minimal-versions-note, r=alexcrichton
Add a note to discourage the use of -Zminimal-versions. We've discussed this a few times, that the current implementation isn't working out, so let's be more transparent about it.
2 parents 759431f + aa0c999 commit 9a935d5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/doc/src/reference/unstable.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ generated if dev-dependencies are skipped.
4444
* Original Issue: [#4100](https://github.com/rust-lang/cargo/issues/4100)
4545
* Tracking Issue: [#5657](https://github.com/rust-lang/cargo/issues/5657)
4646

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

0 commit comments

Comments
 (0)