From 2b9c5d2f74de052598c62edb20049182112fe9fa Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Fri, 1 Aug 2014 22:57:37 -0400 Subject: [PATCH] Add note about Cargo.lock --- src/doc/guide.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/doc/guide.md b/src/doc/guide.md index c0dca1e0d0a..d3a7fad02cd 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -354,6 +354,18 @@ file, we would need to call `rustc` twice, and pass it a bunch of options to tell it to build everything together. With Cargo, as our project grows, we can just `cargo build` and it'll work the right way. +You'll also notice that Cargo has created a new file: `Cargo.lock`. + +```{ignore,notrust} +[root] +name = "hello_world" +version = "0.0.1" +``` + +This file is used by Cargo to keep track of dependencies in your application. +Right now, we don't have any, so it's a bit sparse. You won't ever need +to touch this file yourself, just let Cargo handle it. + That's it! We've successfully built `hello_world` with Cargo. Even though our program is simple, it's using much of the real tooling that you'll use for the rest of your Rust career.