File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 5
5
6
6
``` console
7
7
$ cargo new foo
8
- Created binary (application) `foo` project
8
+ Creating binary (application) `foo` package
9
+ note: see more `Cargo.toml` keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
9
10
$ cat foo/Cargo.toml
10
11
[package]
11
12
name = "foo"
@@ -24,7 +25,8 @@ Rust 2018 edition could be done like this:
24
25
25
26
``` console
26
27
$ cargo new --edition 2018 foo
27
- Created binary (application) `foo` project
28
+ Creating binary (application) `foo` package
29
+ note: see more `Cargo.toml` keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
28
30
$ cat foo/Cargo.toml
29
31
[package]
30
32
name = "foo"
@@ -39,12 +41,12 @@ Don't worry about accidentally using an invalid year for the edition; the
39
41
40
42
``` console
41
43
$ cargo new --edition 2019 foo
42
- error: "2019" isn't a valid value for '--edition <YEAR>'
43
- [possible values: 2015, 2018, 2021]
44
+ error: invalid value '2019' for '--edition <YEAR>'
45
+ [possible values: 2015, 2018, 2021, 2024 ]
44
46
45
- Did you mean "2018"?
47
+ tip: a similar value exists: '2021'
46
48
47
- For more information try --help
49
+ For more information, try ' --help'.
48
50
```
49
51
50
52
You can change the value of the ` edition ` key by simply editing the
You can’t perform that action at this time.
0 commit comments