1
- pub ( crate ) static RUSTUP_HELP : & str = r"DISCUSSION :
1
+ pub ( crate ) static RUSTUP_HELP : & str = r"Discussion :
2
2
Rustup installs The Rust Programming Language from the official
3
3
release channels, enabling you to easily switch between stable,
4
4
beta, and nightly compilers and keep them updated. It makes
@@ -8,7 +8,7 @@ pub(crate) static RUSTUP_HELP: &str = r"DISCUSSION:
8
8
If you are new to Rust consider running `rustup doc --book` to
9
9
learn Rust." ;
10
10
11
- pub ( crate ) static SHOW_HELP : & str = r"DISCUSSION :
11
+ pub ( crate ) static SHOW_HELP : & str = r"Discussion :
12
12
Shows the name of the active toolchain and the version of `rustc`.
13
13
14
14
If the active toolchain has installed support for additional
@@ -17,7 +17,7 @@ pub(crate) static SHOW_HELP: &str = r"DISCUSSION:
17
17
If there are multiple toolchains installed then all installed
18
18
toolchains are listed as well." ;
19
19
20
- pub ( crate ) static SHOW_ACTIVE_TOOLCHAIN_HELP : & str = r"DISCUSSION :
20
+ pub ( crate ) static SHOW_ACTIVE_TOOLCHAIN_HELP : & str = r"Discussion :
21
21
Shows the name of the active toolchain.
22
22
23
23
This is useful for figuring out the active tool chain from
@@ -26,24 +26,24 @@ pub(crate) static SHOW_ACTIVE_TOOLCHAIN_HELP: &str = r"DISCUSSION:
26
26
You should use `rustc --print sysroot` to get the sysroot, or
27
27
`rustc --version` to get the toolchain version." ;
28
28
29
- pub ( crate ) static UPDATE_HELP : & str = r"DISCUSSION :
29
+ pub ( crate ) static UPDATE_HELP : & str = r"Discussion :
30
30
With no toolchain specified, the `update` command updates each of
31
31
the installed toolchains from the official release channels, then
32
32
updates rustup itself.
33
33
34
34
If given a toolchain argument then `update` updates that
35
35
toolchain, the same as `rustup toolchain install`." ;
36
36
37
- pub ( crate ) static INSTALL_HELP : & str = r"DISCUSSION :
37
+ pub ( crate ) static INSTALL_HELP : & str = r"Discussion :
38
38
Installs a specific rust toolchain.
39
39
40
40
The 'install' command is an alias for 'rustup update <toolchain>'." ;
41
41
42
- pub ( crate ) static DEFAULT_HELP : & str = r"DISCUSSION :
42
+ pub ( crate ) static DEFAULT_HELP : & str = r"Discussion :
43
43
Sets the default toolchain to the one specified. If the toolchain
44
44
is not already installed then it is installed first." ;
45
45
46
- pub ( crate ) static TOOLCHAIN_HELP : & str = r"DISCUSSION :
46
+ pub ( crate ) static TOOLCHAIN_HELP : & str = r"Discussion :
47
47
Many `rustup` commands deal with *toolchains*, a single
48
48
installation of the Rust compiler. `rustup` supports multiple
49
49
types of toolchains. The most basic track the official release
@@ -85,7 +85,7 @@ pub(crate) static TOOLCHAIN_HELP: &str = r"DISCUSSION:
85
85
often used for developing Rust itself. For more information see
86
86
`rustup toolchain help link`." ;
87
87
88
- pub ( crate ) static TOOLCHAIN_LINK_HELP : & str = r"DISCUSSION :
88
+ pub ( crate ) static TOOLCHAIN_LINK_HELP : & str = r"Discussion :
89
89
'toolchain' is the custom name to be assigned to the new toolchain.
90
90
Any name is permitted as long as:
91
91
- it does not include '/' or '\' except as the last character
@@ -106,7 +106,7 @@ pub(crate) static TOOLCHAIN_LINK_HELP: &str = r"DISCUSSION:
106
106
If you now compile a crate in the current directory, the custom
107
107
toolchain 'latest-stage1' will be used." ;
108
108
109
- pub ( crate ) static OVERRIDE_HELP : & str = r"DISCUSSION :
109
+ pub ( crate ) static OVERRIDE_HELP : & str = r"Discussion :
110
110
Overrides configure Rustup to use a specific toolchain when
111
111
running in a specific directory.
112
112
@@ -127,14 +127,14 @@ pub(crate) static OVERRIDE_HELP: &str = r"DISCUSSION:
127
127
override and use the default toolchain again, `rustup override
128
128
unset`." ;
129
129
130
- pub ( crate ) static OVERRIDE_UNSET_HELP : & str = r"DISCUSSION :
130
+ pub ( crate ) static OVERRIDE_UNSET_HELP : & str = r"Discussion :
131
131
If `--path` argument is present, removes the override toolchain
132
132
for the specified directory. If `--nonexistent` argument is
133
133
present, removes the override toolchain for all nonexistent
134
134
directories. Otherwise, removes the override toolchain for the
135
135
current directory." ;
136
136
137
- pub ( crate ) static RUN_HELP : & str = r"DISCUSSION :
137
+ pub ( crate ) static RUN_HELP : & str = r"Discussion :
138
138
Configures an environment to use the given toolchain and then runs
139
139
the specified program. The command may be any program, not just
140
140
rustc or cargo. This can be used for testing arbitrary toolchains
@@ -149,14 +149,14 @@ pub(crate) static RUN_HELP: &str = r"DISCUSSION:
149
149
150
150
$ rustup run nightly cargo build" ;
151
151
152
- pub ( crate ) static DOC_HELP : & str = r"DISCUSSION :
152
+ pub ( crate ) static DOC_HELP : & str = r"Discussion :
153
153
Opens the documentation for the currently active toolchain with
154
154
the default browser.
155
155
156
156
By default, it opens the documentation index. Use the various
157
157
flags to open specific pieces of documentation." ;
158
158
159
- pub ( crate ) static COMPLETIONS_HELP : & str = r"DISCUSSION :
159
+ pub ( crate ) static COMPLETIONS_HELP : & str = r"Discussion :
160
160
Enable tab completion for Bash, Fish, Zsh, or PowerShell
161
161
The script is output on `stdout`, allowing one to re-direct the
162
162
output to the file of their choosing. Where you place the file
@@ -167,7 +167,7 @@ pub(crate) static COMPLETIONS_HELP: &str = r"DISCUSSION:
167
167
Here are some common set ups for the three supported shells under
168
168
Unix and similar operating systems (such as GNU/Linux).
169
169
170
- BASH :
170
+ Bash :
171
171
172
172
Completion files are commonly stored in `/etc/bash_completion.d/` for
173
173
system-wide commands, but can be stored in
@@ -180,15 +180,15 @@ pub(crate) static COMPLETIONS_HELP: &str = r"DISCUSSION:
180
180
This installs the completion script. You may have to log out and
181
181
log back in to your shell session for the changes to take effect.
182
182
183
- BASH (macOS/Homebrew):
183
+ Bash (macOS/Homebrew):
184
184
185
185
Homebrew stores bash completion files within the Homebrew directory.
186
186
With the `bash-completion` brew formula installed, run the command:
187
187
188
188
$ mkdir -p $(brew --prefix)/etc/bash_completion.d
189
189
$ rustup completions bash > $(brew --prefix)/etc/bash_completion.d/rustup.bash-completion
190
190
191
- FISH :
191
+ Fish :
192
192
193
193
Fish completion files are commonly stored in
194
194
`$HOME/.config/fish/completions`. Run the command:
@@ -199,7 +199,7 @@ pub(crate) static COMPLETIONS_HELP: &str = r"DISCUSSION:
199
199
This installs the completion script. You may have to log out and
200
200
log back in to your shell session for the changes to take effect.
201
201
202
- ZSH :
202
+ Zsh :
203
203
204
204
ZSH completions are commonly stored in any directory listed in
205
205
your `$fpath` variable. To use these completions, you must either
@@ -229,15 +229,15 @@ pub(crate) static COMPLETIONS_HELP: &str = r"DISCUSSION:
229
229
230
230
for the new completions to take effect.
231
231
232
- CUSTOM LOCATIONS :
232
+ Custom locations :
233
233
234
234
Alternatively, you could save these files to the place of your
235
235
choosing, such as a custom directory inside your $HOME. Doing so
236
236
will require you to add the proper directives, such as `source`ing
237
237
inside your login script. Consult your shells documentation for
238
238
how to add such directives.
239
239
240
- POWERSHELL :
240
+ PowerShell :
241
241
242
242
The powershell completion scripts require PowerShell v5.0+ (which
243
243
comes with Windows 10, but can be downloaded separately for windows 7
@@ -261,18 +261,18 @@ pub(crate) static COMPLETIONS_HELP: &str = r"DISCUSSION:
261
261
262
262
PS C:\> rustup completions powershell >> ${env:USERPROFILE}\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
263
263
264
- CARGO :
264
+ Cargo :
265
265
266
266
Rustup can also generate a completion script for `cargo`. The script output
267
267
by `rustup` will source the completion script distributed with your default
268
268
toolchain. Not all shells are currently supported. Here are examples for
269
269
the currently supported shells.
270
270
271
- BASH :
271
+ Bash :
272
272
273
273
$ rustup completions bash cargo >> ~/.local/share/bash-completion/completions/cargo
274
274
275
- ZSH :
275
+ Zsh :
276
276
277
277
$ rustup completions zsh cargo > ~/.zfunc/_cargo" ;
278
278
0 commit comments