Add rustup.rs instructions in README

This commit is contained in:
Simon Sapin 2017-11-27 18:41:07 +01:00
parent 365a139716
commit f2c398fd5c

View file

@ -14,6 +14,32 @@ Visit the [Servo Project page](https://servo.org/) for news and guides.
## Setting up your environment ## Setting up your environment
### Rustup.rs
Building servo requires [rustup](https://rustup.rs/), version 1.8.0 or more recent.
If you have an older version, run `rustup self update`.
To install on Windows, download and run [`rustup-init.exe`](https://win.rustup.rs/)
then follow the onscreen instructions.
To install on other systems, run:
```sh
curl https://sh.rustup.rs -sSf | sh
```
This will also download the current stable version of Rust, which Servo wont use.
To skip that step, run instead:
```
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain none
```
See also [Other installation methods](
https://github.com/rust-lang-nursery/rustup.rs/#other-installation-methods)
### Other dependencies
Please select your operating system: Please select your operating system:
* [OS X](#os-x) * [OS X](#os-x)
* [Debian-based Linuxes](#on-debian-based-linuxes) * [Debian-based Linuxes](#on-debian-based-linuxes)
@ -152,11 +178,9 @@ Pre-installed Android tools are needed. See wiki for
## The Rust compiler ## The Rust compiler
Servo's build system automatically downloads a Rust compiler to build itself. Servo's build system uses rustup.rs to automatically download a Rust compiler.
This is normally a specific revision of Rust upstream, but sometimes has a This is a specific version of Rust Nightly determined by the
backported patch or two. [`rust-toolchain`](https://github.com/servo/servo/blob/master/rust-toolchain) file.
If you'd like to know which nightly build of Rust we use, see
[`rust-toolchain`](https://github.com/servo/servo/blob/master/rust-toolchain).
## Building ## Building