-
Notifications
You must be signed in to change notification settings - Fork 303
add blog post announcing Rust 2021 public testing period #866
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
Merged
Mark-Simulacrum
merged 6 commits into
rust-lang:master
from
nikomatsakis:rust-2021-testing-period
Jul 21, 2021
Merged
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
c28a105
add blog post announcing public testing period
nikomatsakis a3604ba
remove "release: true" from metadata
nikomatsakis 00c861a
address review comments, rename file
nikomatsakis 76bd628
Rename 2021-07-14-Rust-2021-public-testing.md to 2021-07-20-Rust-2021…
nikomatsakis b554e31
Rename 2021-07-20-Rust-2021-public-testing.md to 2021-07-21-Rust-2021…
nikomatsakis 61e5597
Nightly edition guide
nikomatsakis 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
layout: post | ||
title: "Rust 2021 public testing period" | ||
author: Niko Matsakis | ||
team: the Edition 2021 Project Group <https://www.rust-lang.org/governance/teams/core#project-edition-2021> | ||
--- | ||
|
||
# Rust 2021 public testing period | ||
|
||
We are happy to announce that the Rust 2021 edition is entering its **public testing period**. All of the planned features for the edition are now available on nightly builds along with migrations that should move your code from Rust 2018 to Rust 2021. If you'd like to learn more about the changes that are part of Rust 2021, check out the [Edition Guide](https://doc.rust-lang.org/nightly/edition-guide/rust-2021/index.html). | ||
|
||
### Public testing period | ||
|
||
As we enter the public testing period, **we are encouraging adventurous users to try migrating their crates over to Rust 2021.** As always, we expect this to be a largely automated process. The steps to try out the Rust 2021 Edition as follows (more detailed directions can be found [in the Edition Guide](https://doc.rust-lang.org/nightly/edition-guide/editions/transitioning-an-existing-project-to-a-new-edition.html)): | ||
|
||
1. Install the most recent nightly: `rustup update nightly`. | ||
2. Run `cargo +nightly fix --edition`. | ||
3. Edit `Cargo.toml` and place `cargo-features = ["edition2021"]` at the top (above `[package]`), and change the edition field to say `edition = "2021"`. | ||
4. Run `cargo +nightly check` to verify it now works in the new edition. | ||
|
||
**Note that Rust 2021 is still unstable, so you can expect bugs and other changes!** We recommend migrating your crates in a temporary copy of your code versus your main branch. If you do encounter problems, or find areas where quality could be improved (missing documentation, confusing error mesages, etc) please [file an issue](https://github.com/rust-lang/rust/issues/new/choose) and tell us about it! Thank you! | ||
nikomatsakis marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
### What comes next | ||
|
||
The public testing period will run until the end of July. We will then take some time to fix bugs and do final preparations. We are targeting stabilization of all Rust 2021 for Rust 1.57, which will be released on December 2nd, 2021. Per the [Rust train release model](https://doc.rust-lang.org/book/appendix-07-nightly-rust.html), that means all features and work must be landed on nightly by September 9th. | ||
nikomatsakis marked this conversation as resolved.
Show resolved
Hide resolved
|
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.
Uh oh!
There was an error while loading. Please reload this page.