bench | Execute all benchmarks of a local package |
build, b | Compile a local package and all of its dependencies |
check, c | Check a local package and all of its dependencies for errors |
clean | Remove artifacts that cargo has generated in the past |
config | Inspect configuration values |
doc, d | Build a package's documentation |
fetch | Fetch dependencies of a package from the network |
fix | Automatically fix lint warnings reported by rustc |
generate-lockfile | Generate the lockfile for a package |
git-checkout | This subcommand has been removed |
init | Create a new cargo package in an existing directory |
install | Install a Rust binary. Default location is $HOME/.cargo/bin |
locate-project | Print a JSON representation of a Cargo.toml file's location |
login | Save an api token from the registry locally. If token is not specified, it will be read from stdin |
logout | Remove an API token from the registry locally |
metadata | Output the resolved dependencies of a package, the concrete used versions including overrides, in machine-readable format |
new | Create a new cargo package at <path> |
owner | Manage the owners of a crate on the registry |
package | Assemble the local package into a distributable tarball |
pkgid | Print a fully qualified package specification |
publish | Upload a package to the registry |
read-manifest | Print a JSON representation of a Cargo.toml manifest. Deprecated, use `cargo metadata --no-deps` instead |
report | Generate and display various kinds of reports |
run, r | Run a binary or example of the local package |
rustc | Compile a package, and pass extra options to the compiler |
rustdoc | Build a package's documentation, using specified custom flags |
search | Search packages in crates.io |
test, t | Execute all unit and integration tests and build examples of a local package |
tree | Display a tree visualization of a dependency graph |
uninstall | Remove a Rust binary |
update | Update dependencies as recorded in the local lock file |
vendor | Vendor all dependencies for a project locally |
verify-project | Check correctness of crate manifest |
version | Show version information |
yank | Remove a pushed crate from the index |
help | Print this message or the help of the given subcommand(s) |
add | Add dependencies to a Cargo.toml manifest file |
remove, rm | Remove dependencies from a Cargo.toml manifest file |