table of contents
CARGO(1) | CARGO(1) |
NAME¶
cargo - The Rust package manager
SYNOPSIS¶
cargo [OPTIONS] COMMAND
[ARGS]
cargo [OPTIONS] --version
cargo [OPTIONS] --list
cargo [OPTIONS] --help
cargo [OPTIONS] --explain CODE
DESCRIPTION¶
This program is a package manager and build tool for the Rust language, available at <https://rust-lang.org>.
COMMANDS¶
Build Commands¶
Manifest Commands¶
Package Commands¶
Publishing Commands¶
General Commands¶
OPTIONS¶
Special Options¶
-V, --version
--list
--explain CODE
Display Options¶
-v, --verbose
-q, --quiet
--color WHEN
May also be specified with the term.color config value <https://doc.rust-lang.org/cargo/reference/config.html>.
Manifest Options¶
--frozen, --locked
These may be used in environments where you want to assert that the Cargo.lock file is up-to-date (such as a CI build) or want to avoid network access.
--offline
Beware that this may result in different dependency resolution than online mode. Cargo will restrict itself to crates that are downloaded locally, even if there might be a newer version as indicated in the local copy of the index. See the cargo-fetch(1) command to download dependencies before going offline.
May also be specified with the net.offline config value <https://doc.rust-lang.org/cargo/reference/config.html>.
Common Options¶
+TOOLCHAIN
-h, --help
-Z FLAG...
ENVIRONMENT¶
See the reference <https://doc.rust-lang.org/cargo/reference/environment-variables.html> for details on environment variables that Cargo reads.
EXIT STATUS¶
0
101
FILES¶
~/.cargo/
$CARGO_HOME/bin/
$CARGO_HOME/config.toml
.cargo/config.toml
$CARGO_HOME/credentials.toml
$CARGO_HOME/registry/
$CARGO_HOME/git/
Please note that the internal structure of the $CARGO_HOME directory is not stable yet and may be subject to change.
EXAMPLES¶
cargo build
cargo build --release
cargo test --target i686-unknown-linux-gnu
cargo new foobar
mkdir foo && cd foo cargo init .
cargo help clean
BUGS¶
See <https://github.com/rust-lang/cargo/issues> for issues.
SEE ALSO¶
2020-06-25 |