Skip to content

Commit a48a9b6

Browse files
authored
Update display of contents of Cargo.toml
When creating a (binary) program using 'cargo new', with the new 2018 version of Rust the autogenerated Cargo.toml file contains a couple of additional lines. These lines have to do with edition and dependencies.
1 parent 15e3b5a commit a48a9b6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/doc/src/getting-started/first-steps.md

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ This is all we need to get started. First, let’s check out `Cargo.toml`:
2929
name = "hello_world"
3030
version = "0.1.0"
3131
authors = ["Your Name <you@example.com>"]
32+
edition = "2018"
33+
34+
[dependencies]
3235
```
3336

3437
This is called a **manifest**, and it contains all of the metadata that Cargo

0 commit comments

Comments
 (0)