|
| 1 | ++++ |
| 2 | +path = "2025/04/25/Rustup-1.28.2" |
| 3 | +title = "Announcing rustup 1.28.2" |
| 4 | +authors = ["The Rustup Team"] |
| 5 | +aliases = ["2025/04/25/Rustup-1.28.2.html"] |
| 6 | ++++ |
| 7 | + |
| 8 | +The rustup team is happy to announce the release of rustup version 1.28.2. |
| 9 | +[Rustup][install] is the recommended tool to install [Rust][rust], a programming language that |
| 10 | +empowers everyone to build reliable and efficient software. |
| 11 | + |
| 12 | +## What's new in rustup 1.28.2 |
| 13 | + |
| 14 | +The headlines of this release are: |
| 15 | + |
| 16 | +- The cURL download backend is now officially deprecated and a warning will start to show up |
| 17 | + when it is used. [pr#4277] |
| 18 | + |
| 19 | + - While rustup predates reqwest and rustls, the rustup team has long wanted to standardize on |
| 20 | + an HTTP + TLS stack in Rust, which should increase security, potentially improve performance, and |
| 21 | + simplify maintenance of the project. |
| 22 | + With the default download backend already switched to reqwest since [2019][pr#1660], the team |
| 23 | + thinks it is time to start removing the cURL backend and focus on maintaining the |
| 24 | + reqwest-based stack. |
| 25 | + |
| 26 | + - The rustup team encourages everyone to switch to the reqwest backend, and would love to hear from |
| 27 | + you about your use case via [GitHub Issues][issue tracker] if it does not work well with your |
| 28 | + particular setup. |
| 29 | + |
| 30 | +- The version of `rustup` can be pinned when installing via `rustup-init.sh`, and |
| 31 | + `rustup self update` can be used to upgrade/downgrade rustup v1.28.2+ to a given version. |
| 32 | + To do so, set the `RUSTUP_VERSION` environment variable to the desired version (for example `1.28.2`). |
| 33 | + |
| 34 | +- `rustup set auto-install disable` can now be used to disable automatic installation of the toolchain. |
| 35 | + This is similar to the `RUSTUP_AUTO_INSTALL` environment variable introduced in v1.28.1 but with a |
| 36 | + lower priority. [pr#4254] |
| 37 | + |
| 38 | +- Fixed a bug in Nushell integration that might generate invalid commands in the shell configuration. |
| 39 | + Reinstalling rustup might be required for the fix to work. [pr#4265] |
| 40 | + |
| 41 | +[pr#1660]: https://github.com/rust-lang/rustup/pull/1660 |
| 42 | +[pr#4254]: https://github.com/rust-lang/rustup/pull/4254 |
| 43 | +[pr#4259]: https://github.com/rust-lang/rustup/pull/4259 |
| 44 | +[pr#4265]: https://github.com/rust-lang/rustup/pull/4265 |
| 45 | +[pr#4277]: https://github.com/rust-lang/rustup/pull/4277 |
| 46 | +[issue tracker]: https://github.com/rust-lang/rustup/issues/ |
| 47 | + |
| 48 | +## How to update |
| 49 | + |
| 50 | +If you have a previous version of rustup installed, getting the new one is as easy as stopping |
| 51 | +any programs which may be using rustup (e.g. closing your IDE) and running: |
| 52 | + |
| 53 | +``` |
| 54 | +$ rustup self update |
| 55 | +``` |
| 56 | + |
| 57 | +Rustup will also automatically update itself at the end of a normal toolchain update: |
| 58 | + |
| 59 | +``` |
| 60 | +$ rustup update |
| 61 | +``` |
| 62 | + |
| 63 | +If you don't have it already, you can [get rustup][install] from the appropriate page on our website. |
| 64 | + |
| 65 | +Rustup's documentation is also available in [the rustup book][book]. |
| 66 | + |
| 67 | +## Caveats |
| 68 | + |
| 69 | +Rustup releases can come with problems not caused by rustup itself but just due to having a new release. |
| 70 | + |
| 71 | +In particular, anti-malware scanners might block rustup or stop it from creating or copying |
| 72 | +files, especially when installing `rust-docs` which contains many small files. |
| 73 | + |
| 74 | +Issues like this should be automatically resolved in a few weeks when the anti-malware scanners are updated |
| 75 | +to be aware of the new rustup release. |
| 76 | + |
| 77 | +## Thanks |
| 78 | + |
| 79 | +Thanks again to all the [contributors] who made this rustup release possible! |
| 80 | + |
| 81 | +[book]: https://rust-lang.github.io/rustup/ |
| 82 | +[changelog]: https://github.com/rust-lang/rustup/blob/stable/CHANGELOG.md |
| 83 | +[contributors]: https://github.com/rust-lang/rustup/blob/stable/CHANGELOG.md#detailed-changes |
| 84 | +[install]: https://rustup.rs |
| 85 | +[rust]: https://www.rust-lang.org |
0 commit comments