Skip to content

Commit 2b9c5d2

Browse files
committed
Add note about Cargo.lock
1 parent 1a80dcb commit 2b9c5d2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/doc/guide.md

+12
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,18 @@ file, we would need to call `rustc` twice, and pass it a bunch of options to
354354
tell it to build everything together. With Cargo, as our project grows, we can
355355
just `cargo build` and it'll work the right way.
356356

357+
You'll also notice that Cargo has created a new file: `Cargo.lock`.
358+
359+
```{ignore,notrust}
360+
[root]
361+
name = "hello_world"
362+
version = "0.0.1"
363+
```
364+
365+
This file is used by Cargo to keep track of dependencies in your application.
366+
Right now, we don't have any, so it's a bit sparse. You won't ever need
367+
to touch this file yourself, just let Cargo handle it.
368+
357369
That's it! We've successfully built `hello_world` with Cargo. Even though our
358370
program is simple, it's using much of the real tooling that you'll use for the
359371
rest of your Rust career.

0 commit comments

Comments
 (0)