Skip to content

Commit 925a52c

Browse files
committed
Update Rust install instructions in TRPL
Default is now beta, add nightly in the unstable section
1 parent c1b8eb5 commit 925a52c

File tree

2 files changed

+52
-2
lines changed

2 files changed

+52
-2
lines changed

src/doc/trpl/installing-rust.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ $ sudo sh rustup.sh
1818
```
1919

2020
If you're on Windows, please download either the [32-bit
21-
installer](https://static.rust-lang.org/dist/rust-nightly-i686-pc-windows-gnu.exe)
21+
installer](https://static.rust-lang.org/dist/rust-1.0.0-beta-i686-pc-windows-gnu.exe)
2222
or the [64-bit
23-
installer](https://static.rust-lang.org/dist/rust-nightly-x86_64-pc-windows-gnu.exe)
23+
installer](https://static.rust-lang.org/dist/rust-1.0.0-beta-x86_64-pc-windows-gnu.exe)
2424
and run it.
2525

2626
If you decide you don't want Rust anymore, we'll be a bit sad, but that's okay.

src/doc/trpl/unstable.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,51 @@
11
% Unstable Rust
2+
3+
Rust provides three distribution channels for Rust: nightly, beta, and stable.
4+
Unstable features are only available on nightly Rust. For more details on this
5+
process, see [this post](http://blog.rust-lang.org/2014/10/30/Stability.html).
6+
7+
To install nightly Rust, you can use `rustup.sh`:
8+
9+
```bash
10+
$ curl -s https://static.rust-lang.org/rustup.sh | sudo sh -s -- --channel=nightly
11+
```
12+
13+
If you're concerned about the [potential insecurity](http://curlpipesh.tumblr.com/) of using `curl | sudo sh`,
14+
please keep reading and see our disclaimer below. And feel free to use a two-step version of the installation and examine our installation script:
15+
16+
```bash
17+
$ curl -f -L https://static.rust-lang.org/rustup.sh -O
18+
$ sudo sh rustup.sh --channel=nightly
19+
```
20+
21+
If you're on Windows, please download either the [32-bit
22+
installer](https://static.rust-lang.org/dist/rust-nightly-i686-pc-windows-gnu.exe)
23+
or the [64-bit
24+
installer](https://static.rust-lang.org/dist/rust-nightly-x86_64-pc-windows-gnu.exe)
25+
and run it.
26+
27+
If you decide you don't want Rust anymore, we'll be a bit sad, but that's okay.
28+
Not every programming language is great for everyone. Just run the uninstall
29+
script:
30+
31+
```bash
32+
$ sudo /usr/local/lib/rustlib/uninstall.sh
33+
```
34+
35+
If you used the Windows installer, just re-run the `.exe` and it will give you
36+
an uninstall option.
37+
38+
You can re-run this script any time you want to update Rust. Which, at this
39+
point, is often. Rust is still pre-1.0, and so people assume that you're using
40+
a very recent Rust.
41+
42+
This brings me to one other point: some people, and somewhat rightfully so, get
43+
very upset when we tell you to `curl | sudo sh`. And they should be! Basically,
44+
when you do this, you are trusting that the good people who maintain Rust
45+
aren't going to hack your computer and do bad things. That's a good instinct!
46+
If you're one of those people, please check out the documentation on [building
47+
Rust from Source](https://github.com/rust-lang/rust#building-from-source), or
48+
[the official binary downloads](http://www.rust-lang.org/install.html). And we
49+
promise that this method will not be the way to install Rust forever: it's just
50+
the easiest way to keep people updated while Rust is in its alpha state.
51+

0 commit comments

Comments
 (0)