table of contents
CARGO(1) | CARGO(1) |
NAME¶
cargo - The Rust package managerSYNOPSIS¶
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¶
cargo-bench(1)Manifest Commands¶
cargo-generate-lockfile(1)Package Commands¶
cargo-init(1)Publishing Commands¶
cargo-login(1)General Commands¶
cargo-help(1)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, --lockedThese 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¶
-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¶
0101
FILES¶
~/.cargo/$CARGO_HOME/bin/
$CARGO_HOME/config
.cargo/config
$CARGO_HOME/credentials
$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¶
rustc(1), rustdoc(1)2019-12-04 |