File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -6,17 +6,16 @@ configuration for the latest edition:
6
6
``` console
7
7
> cargo +nightly new foo
8
8
Created binary (application) `foo` project
9
- > cat . \ f oo\ C argo.toml
9
+ > cat foo/ Cargo.toml
10
10
[package]
11
11
name = "foo"
12
12
version = "0.1.0"
13
- authors = ["your name <you@example.com>"]
14
- edition = "2018"
13
+ edition = "2021"
15
14
16
15
[dependencies]
17
16
```
18
17
19
- That ` edition = "2018 " ` setting will configure your package to use Rust 2018 .
18
+ That ` edition = "2021 " ` setting will configure your package to use Rust 2021 .
20
19
No more configuration needed!
21
20
22
21
If you'd prefer to use an older edition, you can change the value in that
@@ -26,7 +25,6 @@ key, for example:
26
25
[package ]
27
26
name = " foo"
28
27
version = " 0.1.0"
29
- authors = [" your name <you@example.com>" ]
30
28
edition = " 2015"
31
29
32
30
[dependencies ]
You can’t perform that action at this time.
0 commit comments