Skip to content

Commit

Permalink
Auto merge of #2307 - alexcrichton:readme, r=brson
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Jan 23, 2016
2 parents 0cc21a8 + d261ffd commit 1a929a1
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1a929a1

Please sign in to comment.