rustup 1.4.0 is out. To upgrade run rustup self update
.
rustup is the primary official method of installing Rust.
This is a pretty sweet release with some new features and nice fixes.
The big addition here is support for xz compression. Rust has
historically been distributed as gzipped tarballs, and so haven't been
compressed as much as might be desired, especially by those on slower
connections. Starting with Rust 1.19, which is available on the beta
channel today, Rust is also distributed with xz compression, which
this version of rustup will use by default. Here's a representative
sample of the difference in download sizes:
| file | size |
|------------------------------------------------|---------|
| rustc-beta-x86_64-unknown-linux-gnu.tar.gz | 47.8 MB |
| rustc-beta-x86_64-unknown-linux-gnu.tar.xz | 37.6 MB |
| rust-std-beta-x86_64-unknown-linux-gnu.tar.gz | 78.6 MB |
| rust-std-beta-x86_64-unknown-linux-gnu.tar.xz | 55.8 MB |
| rust-docs-beta-x86_64-unknown-linux-gnu.tar.gz | 12.5 MB |
| rust-docs-beta-x86_64-unknown-linux-gnu.tar.xz | 3.5 MB |
| rust-src-beta.tar.gz | 3.1 MB |
| rust-src-beta.tar.xz | 2.1 MB |
rustup will use the xz binaries silently, but you can verify that you
are actually getting the smaller downloads by running with -v
:
rustup -v update beta
Implementing this required patches to several projects involved in
Rust distribution. Thanks @ranma42 for making it happen!
This version correctly detects Visual Studio 2017 installations during
installation, as does the upcoming Rust 1.19 release. Since Rust will
not correctly support VS 2017 until the next release, as a slightly
awkward consequence in the meantime rustup will happily install the
stable toolchain alongside VS 2017, but the toolchain will not
actually work without explicitly configuring the environment.
This release includes builds for x86_64-linux-android, finally
bringing the full Rust experience to x86_64 Android. Thanks @malbarbo
for his long toiling to realize this platform support.
And there's also a bunch of bug fixes. Thanks everybody for all the
help!
1.4.0
- set_file_perms: if the file is already executable, keep it executable
- Disable man support on Windows
- VS 2017 updates
- Show version of rust being installed
- Detect MSVC 2017
- Use same precision as rustc for commit sha
- Fix prompt asking for msvc even though -y is provided
- README: fix rust build dir
- Add support for XZ-compressed packages
- Add PATH in post-install message when not modifying PATH
- Cleanup download-related code in the rustup_dist crate
- Increase Rust detection timeout to 3 seconds
- Supress confusing NotADirectory error and show override missing
- Don't try to update archive toolchains
- Exit successfully on "update not yet available"
- Add a message when removing a component
- Use ShellExecute rather than start.exe to open docs on windows
- Clarify that rustup update updates rustup itself
- Ensure that intermediate directories exist when unpacking an entry
- Add the rust lib dir (containing std-.dll) to the path on windows
- Add x86_64-linux-android target
- Fix for help.rs suggestion
- Ignore remove_override_nonexistent on windows
- Update proxy setting docs
- Add sensible-browser to the browser list
- Added help for
rustup toolchain link
Contributors: Andrea Canciani, bors, Brian Anderson, CrazyMerlyn, Diggory Blake,
Fabio B, James Elford, Jim McGrath, johnthagen, Josh Lee, Kim Christensen, Marco
A L Barbosa, Mateusz Mikula, Matthew, Matt Ickstadt, Mikhail Modin, Patrick
Deuster, pxdeu, Ralf Jung, Raphaël Huchet, Robert Vally, theindigamer, Tommy Ip,
Xidorn Quan