-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Specify Rust compatibility of nursery crates #1619
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,6 +149,32 @@ Deprecated crates move to rust-lang-deprecated and are subsequently minimally | |
maintained. Alternatively, if someone volunteers to maintain the crate, | ||
ownership can be transferred externally. | ||
|
||
### Compatibility with older compilers | ||
|
||
The current version of rust-lang-nursery crates will currently be guaranteed to | ||
compile on the **previous two stable releases** of Rust and forward. That is, if | ||
the current stable release is 1.10, all nursery crates will compile successfully | ||
on both 1.8 and 1.9. Some nursery crates may compile on older versions, but this | ||
is not guaranteed and changes to the crate are allowed which bump the minimum | ||
rustc version requirement. | ||
|
||
This will be implemented in practice by adding continuous integration to all | ||
nursery crates which runs the test suite on older Rust versions. If a change is | ||
made that breaks compatibility with an older Rust version, then the version can | ||
be dropped if it was before two stable releases ago (e.g. by updating the | ||
continuous integration configuration), or the change must wait to land | ||
otherwise. If the minimum vesion of Rust is increased then this is not | ||
considered a breaking change (e.g. does not require a new major release). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. femtonit: ie rather than eg |
||
|
||
Crates are allowed to experiment with new stable features in Rust, however, that | ||
are behind off-by-default Cargo features. For example the `panic::catch_unwind` | ||
API, stabilized, in 1.10, could be behind a feature flag for crates until 1.12 | ||
is released. | ||
|
||
Note that this policy may change over time. For example if LTS releases of the | ||
compiler as created then it is likely that nursery crates will guarantee | ||
compatibility with an LTS release. | ||
|
||
## Advertising | ||
|
||
Part of the reason for having rust-lang crates is to have a clear, short list of | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Rewording suggestion: