Package cargo

Rust's package manager and build tool

https://crates.io/

Cargo is a tool that allows Rust projects to declare their various dependencies
and ensure that you'll always get a repeatable build.

General Commands (Section 1)
cargo
This program is a package manager for the Rust language, available at <http://rust-lang.org>.
cargo-bench
Execute all benchmarks of a local package. All of the trailing arguments are passed to the benchmark binaries generated for filtering benchmarks and generally...
cargo-build
Compile a local package and all of its dependencies. If the --package argument is given, then SPEC is a package id specification which indicates which package...
cargo-clean
Remove artifacts that cargo has generated in the past. If the --package argument is given, then SPEC is a package id specification which indicates which package...
cargo-doc
Build a package's documentation. By default the documentation for the local package and all dependencies is built. The output is all placed in 'target/doc' in...
cargo-fetch
If a lockfile is available, this command will ensure that all of the git dependencies and/or registries dependencies are downloaded and locally available. The...
cargo-generate-lockfile
cargo generate-lockfile [Options]
cargo-init
Create a new cargo package in the current directory. Use the --vcs option to control the version control system to use.
cargo-install
Install a Rust binary This command manages Cargo's local set of install binary crates. Only packages which have [[bin]] targets can be installed, and all...
cargo-login
cargo login [Options] [<TOKEN>]
cargo-metadata
Output the resolved dependencies of a project, the concrete used versions including overrides, in machine-readable format.
cargo-new
Create a new cargo package at <PATH>. Use the --vcs option to control the version control system to use.
cargo-owner
This command will modify the owners for a package on the specified registry (or default). Note that owners of a package can upload new versions, and yank old...
cargo-package
Assemble the local package into a distributable tarball.
cargo-pkgid
Given a <SPEC> argument, print out the fully qualified package id specifier. This command will generate an error if <SPEC> is ambiguous as to which package it...
cargo-publish
Upload a package to the registry.
cargo-run
Run the main binary of the local package (src/main.rs). If neither --bin nor --example are given, then if the project only has one bin target it will be run...
cargo-rustc
The specified target for the current package (or package specified by SPEC if provided) will be compiled along with all of its dependencies. The specified ...
cargo-rustdoc
The specified target for the current package (or package specified by SPEC if provided) will be documented with the specified <OPTS>... being passed to the...
cargo-search
Search packages in crates.io.
cargo-test
Execute all unit and integration tests of a local package. All of the trailing arguments are passed to the test binaries generated for filtering tests and...
cargo-uninstall
The argument SPEC is a package id specification (see cargo help pkgid) to specify which crate should be uninstalled. By default all binaries are uninstalled for...
cargo-update
Update dependencies as recorded in the local lock file. This command requires that a Cargo.lock already exists as generated by cargo build or related commands...
cargo-version
Show version information
cargo-yank
The yank command removes a previously pushed crate's version from the server's index. This command does not delete any data, and the crate will still be...