-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Recommend package.rust-version
in the Rust version section of reference/semver.md
.
#15806
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Adds a recommendation that, to mitigate “possibly breaking” Rust version requirement increases, they should be declared using `package.rust-version`. My main goal in this change is to make it *possible to find* the Rust version section in this page by searching it, but the most appropriate way to fit it into this section seemed to me to be making this recommendation. Declaring (and maintaining) `package.rust-version` is additional work, but it is a much lesser burden on maintainers than other items in the same list such as "Provide a large window of support".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution!
Co-authored-by: Ed Page <[email protected]>
Mind cleaning up the commits into logical, atomic units rather than the history of how this was implemented? |
to update their Rust toolchain rapidly. | ||
|
||
Mitigation strategies: | ||
* Specify your package’s minimum-supported Rust version by setting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If making changes to the history, one last tweak (I know, I recommended this wording):
* Specify your package’s minimum-supported Rust version by setting | |
* Document your package’s minimum-supported Rust version by setting |
This changes the base assumption to be that this item is for if you have an MSRV and so you likely also verify it. We have the note at the end about support considerations but people are likely to miss that when scanning through this.
I'm tempted to tweak this further to find a way to make it clear that an MSRV isn't always literally what compiles but not finding a great way, so leaving it.
Adds a recommendation that, to mitigate “possibly breaking” Rust version requirement increases, they should be declared using
package.rust-version
.My main goal in this change is to make it possible to find the Rust version section in this page by searching it, but the most appropriate way to fit it into this section seemed to me to be making this recommendation. Declaring (and maintaining)
package.rust-version
is additional work, but it is a much lesser burden on maintainers than other items in the same list such as "Provide a large window of support".