cargo-uninstall
Remove a Rust binary installed using cargo install.
cargo install
cargo-tree
Display a tree visualization of a dependency graph.Note: in the tree, dependencies of packages marked with (*) have already been shown elsewhere in the graph, and so are not repeated.
(*)
cargo-test
Execute the unit and integration tests of a Rust package.
cargo-search
The crates are displayed along with descriptions in TOML format suitable for copying into Cargo.toml.
Cargo.toml
cargo-rustdoc
Build the documentation of Rust packages.Similar to cargo doc, but you can pass options to rustdoc. See rustdoc --help for all available options.
cargo doc
rustdoc
rustdoc --help
cargo-rustc
Compile a Rust package. Similar to cargo build, but you can pass extra options to the compiler.See rustc --help for all available options.
cargo build
rustc --help
cargo-run
Run the current Cargo package.Note: the working directory of the executed binary will be set to the current working directory.
cargo-report
Display various kinds of reports.
cargo-remove
Remove dependencies from a Rust project's Cargo.toml manifest.
cargo-publish
Upload a package to a registry.Note: you have to add an authentication token using cargo login before publishing a package.
cargo login
cargo-pkgid
Print the fully qualified package ID specifier for a package or dependency in the current workspace.
cargo-package
Assemble a local package into a distributable tarball (a .crate file).Similar to cargo publish --dry-run, but has more options.
.crate
cargo publish --dry-run
cargo-owner
Manage the owners of a crate on the registry.
cargo-new
Create a new Cargo package.Equivalent of cargo init, but specifying a directory is required.
cargo init
cargo-metadata
Output the workspace members and resolved dependencies of current package as JSON.Note: The output format is subject to change in future versions of Cargo.
cargo-logout
Remove an API token from the registry locally.The token is used to authenticate to a package registry. You can add it back using cargo login.
cargo-login
Save an API token from the registry locally.The token is used to authenticate to a package registry. You can remove it using cargo logout.
cargo logout
cargo-locate-project
Print the full path to the Cargo.toml manifest of a project.If the project is part of a workspace, the manifest of the project is shown, rather than that of the workspace.
cargo-install
Build and install a Rust binary.
cargo-init
Create a new Cargo package.Equivalent of cargo new, but specifying a directory is optional.
cargo new