Skip to content

Commit cf75305

Browse files
committed
Auto merge of #6501 - vishallama:vishallama-doc-update-cargo.toml, r=dwijnand
Update display of contents of Cargo.toml When creating a (binary) program/crate 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.
2 parents 9178fc8 + a48a9b6 commit cf75305

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
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 <[email protected]>"]
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)