-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
5 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
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] | ||
|