mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Add rustup.rs instructions in README
This commit is contained in:
parent
365a139716
commit
f2c398fd5c
1 changed files with 29 additions and 5 deletions
34
README.md
34
README.md
|
@ -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 won’t 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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue