1
- pub 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 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 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 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 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 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 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 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 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 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 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 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 it does not fully match an initial
91
91
substring of a standard release channel. For example, you can use
@@ -104,7 +104,7 @@ pub static TOOLCHAIN_LINK_HELP: &str = r"DISCUSSION:
104
104
If you now compile a crate in the current directory, the custom
105
105
toolchain 'latest-stage1' will be used." ;
106
106
107
- pub static OVERRIDE_HELP : & str = r"DISCUSSION:
107
+ pub ( crate ) static OVERRIDE_HELP : & str = r"DISCUSSION:
108
108
Overrides configure Rustup to use a specific toolchain when
109
109
running in a specific directory.
110
110
@@ -125,14 +125,14 @@ pub static OVERRIDE_HELP: &str = r"DISCUSSION:
125
125
override and use the default toolchain again, `rustup override
126
126
unset`." ;
127
127
128
- pub static OVERRIDE_UNSET_HELP : & str = r"DISCUSSION:
128
+ pub ( crate ) static OVERRIDE_UNSET_HELP : & str = r"DISCUSSION:
129
129
If `--path` argument is present, removes the override toolchain
130
130
for the specified directory. If `--nonexistent` argument is
131
131
present, removes the override toolchain for all nonexistent
132
132
directories. Otherwise, removes the override toolchain for the
133
133
current directory." ;
134
134
135
- pub static RUN_HELP : & str = r"DISCUSSION:
135
+ pub ( crate ) static RUN_HELP : & str = r"DISCUSSION:
136
136
Configures an environment to use the given toolchain and then runs
137
137
the specified program. The command may be any program, not just
138
138
rustc or cargo. This can be used for testing arbitrary toolchains
@@ -147,14 +147,14 @@ pub static RUN_HELP: &str = r"DISCUSSION:
147
147
148
148
$ rustup run nightly cargo build" ;
149
149
150
- pub static DOC_HELP : & str = r"DISCUSSION:
150
+ pub ( crate ) static DOC_HELP : & str = r"DISCUSSION:
151
151
Opens the documentation for the currently active toolchain with
152
152
the default browser.
153
153
154
154
By default, it opens the documentation index. Use the various
155
155
flags to open specific pieces of documentation." ;
156
156
157
- pub static COMPLETIONS_HELP : & str = r"DISCUSSION:
157
+ pub ( crate ) static COMPLETIONS_HELP : & str = r"DISCUSSION:
158
158
Enable tab completion for Bash, Fish, Zsh, or PowerShell
159
159
The script is output on `stdout`, allowing one to re-direct the
160
160
output to the file of their choosing. Where you place the file
@@ -274,11 +274,11 @@ pub static COMPLETIONS_HELP: &str = r"DISCUSSION:
274
274
275
275
$ rustup completions zsh cargo > ~/.zfunc/_cargo" ;
276
276
277
- pub static TOOLCHAIN_ARG_HELP : & str = "Toolchain name, such as 'stable', 'nightly', \
277
+ pub ( crate ) static TOOLCHAIN_ARG_HELP : & str = "Toolchain name, such as 'stable', 'nightly', \
278
278
or '1.8.0'. For more information see `rustup \
279
279
help toolchain`";
280
280
281
- pub static TOPIC_ARG_HELP : & str = "Topic such as 'core', 'fn', 'usize', 'eprintln!', \
281
+ pub ( crate ) static TOPIC_ARG_HELP : & str = "Topic such as 'core', 'fn', 'usize', 'eprintln!', \
282
282
'core::arch', 'alloc::format!', 'std::fs', \
283
283
'std::fs::read_dir', 'std::io::Bytes', \
284
284
'std::iter::Sum', 'std::io::error::Result' etc...";
0 commit comments