blob: 510db532a1118f709ee257331bdf595356ce6be6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
### Common Options
{{#options}}
{{#option "`+`_toolchain_"}}
If Cargo has been installed with rustup, and the first argument to `cargo`
begins with `+`, it will be interpreted as a rustup toolchain name (such
as `+stable` or `+nightly`).
See the [rustup documentation](https://rust-lang.github.io/rustup/overrides.html)
for more information about how toolchain overrides work.
{{/option}}
{{#option "`--config` _KEY=VALUE_ or _PATH_"}}
Overrides a Cargo configuration value. The argument should be in TOML syntax of `KEY=VALUE`,
or provided as a path to an extra configuration file. This flag may be specified multiple times.
See the [command-line overrides section](../reference/config.html#command-line-overrides) for more information.
{{/option}}
{{#option "`-C` _PATH_"}}
Changes the current working directory before executing any specified operations. This affects
things like where cargo looks by default for the project manifest (`Cargo.toml`), as well as
the directories searched for discovering `.cargo/config.toml`, for example.
This option is only available on the [nightly
channel](https://doc.rust-lang.org/book/appendix-07-nightly-rust.html) and
requires the `-Z unstable-options` flag to enable (see
[#10098](https://github.com/rust-lang/cargo/issues/10098)).
{{/option}}
{{#option "`-h`" "`--help`"}}
Prints help information.
{{/option}}
{{#option "`-Z` _flag_"}}
Unstable (nightly-only) flags to Cargo. Run `cargo -Z help` for details.
{{/option}}
{{/options}}
|