Merge pull request #20495 from brson/cargo

Update guide for Cargo installation

Reviewed-by: steveklabnik
This commit is contained in:
bors 2015-01-04 21:36:38 +00:00
commit 05164ba1e0

View file

@ -284,13 +284,14 @@ program doesn't have any dependencies, so we'll only be using the first part of
its functionality. Eventually, we'll add more. Since we started off by using its functionality. Eventually, we'll add more. Since we started off by using
Cargo, it'll be easy to add later. Cargo, it'll be easy to add later.
Let's convert Hello World to Cargo. The first thing we need to do to begin If you installed Rust via the official installers you will also have
using Cargo is to install Cargo. Luckily for us, the script we ran to install Cargo. If you installed Rust some other way, you may want to [check
Rust includes Cargo by default. If you installed Rust some other way, you may the Cargo
want to [check the Cargo
README](https://github.com/rust-lang/cargo#installing-cargo-from-nightlies) README](https://github.com/rust-lang/cargo#installing-cargo-from-nightlies)
for specific instructions about installing it. for specific instructions about installing it.
Let's convert Hello World to Cargo.
To Cargo-ify our project, we need to do two things: Make a `Cargo.toml` To Cargo-ify our project, we need to do two things: Make a `Cargo.toml`
configuration file, and put our source file in the right place. Let's configuration file, and put our source file in the right place. Let's
do that part first: do that part first: