|
1 | 1 | % 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