From d261ffda59b7b8927862b1924c6978d3c9209ef1 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 22 Jan 2016 16:09:17 -0800 Subject: [PATCH] Add more info to README about compiling Running `cargo build` should work just fine to build cargo as well as not running the python script to download rustc itself. Now that Cargo runs on stable (and a pretty old stable) most Rust installations should "Just Work" to build Cargo. --- README.md | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f86c6a93a90..716c26b14c4 100644 --- a/README.md +++ b/README.md @@ -27,18 +27,36 @@ inside an MSYS shell, likely from a MinGW-64 installation. Cargo requires the following tools and packages to build: -* `rustc` * `python` * `curl` (on Unix) * `cmake` * OpenSSL headers (only for Unix, this is the `libssl-dev` package on ubuntu) -Cargo can then be compiled like many other standard unix-like projects: +First, you'll want to check out this repository -```sh -git clone https://github.com/rust-lang/cargo +``` +git clone --recursive https://github.com/rust-lang/cargo cd cargo -git submodule update --init +``` + +If you already have `rustc` and `cargo` installed elsewhere, you can simply run + +``` +cargo build --release +``` + +Otherwise, if you have `rustc` installed and not Cargo, you can simply run: + +```sh +./configure +make +make install +``` + +If, however, you have neither `rustc` nor `cargo` previously installed you can +run: + +```sh python -B src/etc/install-deps.py ./configure --local-rust-root="$PWD"/rustc make