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 55
66``` console
77$ 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
910$ cat foo/Cargo.toml
1011[package]
1112name = "foo"
@@ -24,7 +25,8 @@ Rust 2018 edition could be done like this:
2425
2526``` console
2627$ 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
2830$ cat foo/Cargo.toml
2931[package]
3032name = "foo"
@@ -39,12 +41,12 @@ Don't worry about accidentally using an invalid year for the edition; the
3941
4042``` console
4143$ 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 ]
4446
45- Did you mean "2018"?
47+ tip: a similar value exists: '2021'
4648
47- For more information try --help
49+ For more information, try ' --help'.
4850```
4951
5052You can change the value of the ` edition ` key by simply editing the
You can’t perform that action at this time.
0 commit comments