Skip to content

Commit 6b7c3dc

Browse files
committed
last updates to the blog post
1 parent d41cdf3 commit 6b7c3dc

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

posts/2019-10-15-Rustup-1.20.0.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ If you have a previous version of rustup installed, getting rustup 1.20.0 is as
1212
rustup self update
1313
```
1414

15+
Rustup will also automatically update itself at the end of a normal toolchain update:
16+
17+
```
18+
rustup update
19+
```
20+
1521
If you don't have it already, you can [get rustup][install] from the appropriate page on our website.
1622

1723
[rust]: https://www.rust-lang.org
@@ -25,9 +31,9 @@ The highlights of this release are profiles support, the ability to get the late
2531

2632
### Profiles
2733

28-
Previous versions of rustup installed a few components by default along with each toolchain: the compiler (`rustc`), the package manager (`cargo`), the standard library (`rust-std`), and offline documentation (`rust-docs`). While this approach is fine while developing software locally, some of the components (like `rust-docs`) slowed down the installation due to the large amount of installed files, especially on CIs and on Windows.
34+
Previous versions of rustup installed a few components by default along with each toolchain: the compiler (`rustc`), the package manager (`cargo`), the standard library (`rust-std`), and offline documentation (`rust-docs`). While this approach is fine while developing software locally, some of the components (like `rust-docs`) slowed down the installation, either because they're not used on build servers, or on Windows due to the large amount of installed files.
2935

30-
To address this problem, rustup 1.20.0 introduces the concept of "profiles". They are groups of components you can choose to download while installing a Rust toolchain. The profiles available at this time are `minimal`, `default`, and `complete`:
36+
To address this problem, rustup 1.20.0 introduces the concept of "profiles". They are groups of components you can choose to download while installing a new Rust toolchain. The profiles available at this time are `minimal`, `default`, and `complete`:
3137

3238
* The **minimal** profile includes as few components as possible to get a working compiler (`rustc`, `rust-std`, and `cargo`). It's recommended to use this component on Windows systems if you don't use local documentation, and in CI.
3339
* The **default** profile includes all the components previously installed by default (`rustc`, `rust-std`, `cargo`, and `rust-docs`) plus `rustfmt` and `clippy`. This profile will be used by rustup by default, and it's the one recommended for general use.
@@ -39,7 +45,7 @@ To change the rustup profile you can use the `rustup set profile` command. For e
3945
rustup set profile minimal
4046
```
4147

42-
It's also possible to choose the profile at installation time, either interactively by choosing the "Customize installation" option or programmaticaly by passing the `--profile=<name>` flag. As usual it will be possible to install individual components not included in your profile with: `rustup component add`.
48+
It's also possible to choose the profile when installing rustup for the first time, either interactively by choosing the "Customize installation" option or programmaticaly by passing the `--profile=<name>` flag. Profiles will only affect newly installed toolchains: as usual it will be possible to install individual components later with: `rustup component add`.
4349

4450
### Installing the latest compatible nightly
4551

@@ -59,22 +65,22 @@ The `rustup doc` command opens the locally installed documentation on your brows
5965
rustup doc std::iter::Iterator
6066
```
6167

62-
This works for traits, structs/enums, macros, and modules, and can take you to the `std`, `alloc`, and `core` crates. We will be improving the command's UX over time, so if you have ideas, please do let us know!
68+
This works for traits, structs/enums, macros, and modules, and can take you to the `std`, `alloc`, and `core` crates. Note, however, that this functionality will only work if you have the `rust-docs` component installed in your toolchain. We will be improving the command's UX over time, so if you have ideas, please do let us know!
6369

6470
[`Iterator`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html
6571

6672
## Thanks
6773

6874
Thanks to all the contributors who made rustup 1.20.0 possible!
6975

70-
- Nick Cameron
7176
- Andy McCaffrey
72-
- Pietro Albini
73-
- Benjamin Chen
7477
- Artem Borisovskiy
78+
- Benjamin Chen
79+
- Daniel Silverstone
7580
- Jon Gjengset
7681
- Lzu Tao
77-
- Daniel Silverstone
78-
- PicoJr
79-
- Mitchell Hynes
8082
- Matt Kantor
83+
- Mitchell Hynes
84+
- Nick Cameron
85+
- PicoJr
86+
- Pietro Albini

0 commit comments

Comments
 (0)