-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #266 from ehuss/2021-stabilization
Update for 2021 stabilization
- Loading branch information
Showing
4 changed files
with
9 additions
and
31 deletions.
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
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 |
---|---|---|
|
@@ -6,17 +6,16 @@ configuration for the latest edition: | |
```console | ||
> cargo +nightly new foo | ||
Created binary (application) `foo` project | ||
> cat .\foo\Cargo.toml | ||
> cat foo/Cargo.toml | ||
[package] | ||
name = "foo" | ||
version = "0.1.0" | ||
authors = ["your name <[email protected]>"] | ||
edition = "2018" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
``` | ||
|
||
That `edition = "2018"` setting will configure your package to use Rust 2018. | ||
That `edition = "2021"` setting will configure your package to use Rust 2021. | ||
No more configuration needed! | ||
|
||
If you'd prefer to use an older edition, you can change the value in that | ||
|
@@ -26,7 +25,6 @@ key, for example: | |
[package] | ||
name = "foo" | ||
version = "0.1.0" | ||
authors = ["your name <[email protected]>"] | ||
edition = "2015" | ||
|
||
[dependencies] | ||
|
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
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 |
---|---|---|
@@ -1,22 +1,11 @@ | ||
# Rust 2021 | ||
|
||
🚧 The 2021 Edition has not yet been released and hence this section is still "under construction". | ||
You can [read more about our plans in this blog post](https://blog.rust-lang.org/2021/05/11/edition-2021.html). | ||
|
||
| Info | | | ||
| --- | --- | | ||
| RFC | [#3085](https://github.com/rust-lang/rfcs/pull/3085) | | ||
| Release version | 1.56.0 (anticipated) | | ||
|
||
The Rust 2021 Edition is currently slated for release in Rust 1.56.0. | ||
Rust 1.56.0 will then be in beta for six weeks, | ||
after which it is released as stable on October 21st. | ||
|
||
However, note that Rust is a project run by volunteers. | ||
We prioritize the personal well-being of everyone working on Rust | ||
over any deadlines and expectations we might have set. | ||
This could mean delaying the edition a version if necessary, | ||
or dropping a feature that turns out to be too difficult or stressful to finish in time. | ||
| Release version | 1.56.0 | | ||
|
||
That said, we are on schedule and many of the difficult problems are already tackled, | ||
thanks to all the people contributing to Rust 2021! 💛 | ||
The Rust 2021 Edition contains several changes that bring new capabilities and more consistency to the language, | ||
and opens up room for expansion in the future. | ||
The following chapters dive into the details of each change, | ||
and they include guidance on migrating your existing code. |