File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ And it runs on all platforms Rust supports, including Windows.
41
41
42
42
## Installation
43
43
44
- Follow the instructions at https://rustup.rs . If
44
+ Follow the instructions at < https://www.rust-lang.org/tools/install > . If
45
45
that doesn't work for you there are [ other installation
46
46
methods] ( #other-installation-methods ) .
47
47
@@ -151,6 +151,26 @@ using the toolchain.
151
151
[ Environment Variables ] : #environment-variables
152
152
[ cargo ] : https://github.com/rust-lang/cargo
153
153
154
+ #### Installing nightly
155
+
156
+ When ` rustup-init ` installs the initial toolchain it _ forces_ the installation
157
+ and so will install the ` nightly ` channel regardless of whether it might be
158
+ missing components that you want. For example, if you want to make a fresh
159
+ installation of ` rustup ` and then install ` nightly ` along with ` clippy ` or
160
+ ` miri ` you will need to do this in two phases.
161
+
162
+ Firstly install ` rustup ` by means of:
163
+
164
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -- --default-toolchain none -y
165
+
166
+ Next you can install ` nightly ` allowing ` rustup ` to downgrade until it finds
167
+ the components you need:
168
+
169
+ rustup toolchain install nightly --allow-downgrade --profile minimal --component clippy
170
+
171
+ This can be used to great effect in CI, to get you a toolchain rapidly which meets
172
+ your criteria
173
+
154
174
## How rustup works
155
175
156
176
` rustup ` is a * toolchain multiplexer* . It installs and manages many
You can’t perform that action at this time.
0 commit comments