All apps/Cargo

Cargo

cargo

Rust's package manager and build tool.

Runs as cargo|macOS, Linux, Windows|doc.rust-lang.org

Autocomplete

Fig spec, with what the manifest adds · 40 subcommands · 12 options
Published once and never changed; check the digest before caching
sha256
efc3ec66d417ab46fed04d82f071cca5eaa30951a0ec010b4883e4ed7d429526
Size
195095 bytes
Subcommands40 subcommands
cargo bench
Execute all benchmarks of a local package
cargo build
Compile a local package and all of its dependencies
cargo check
Check a local package and all of its dependencies for errors
cargo clean
Remove artifacts that cargo has generated in the past
cargo config
Inspect configuration values
cargo config get
cargo config help
Print this message or the help of the given subcommand(s)
cargo doc
Build a package's documentation
cargo fetch
Fetch dependencies of a package from the network
cargo fix
Automatically fix lint warnings reported by rustc
cargo generate-lockfile
Generate the lockfile for a package
cargo init
Create a new cargo package in an existing directory
cargo install
Install a Rust binary. Default location is $HOME/.cargo/bin
cargo locate-project
Print a JSON representation of a Cargo.toml file's location
cargo login
Save an api token from the registry locally. If token is not specified, it will be read from stdin
cargo logout
Remove an API token from the registry locally
cargo metadata
Output the resolved dependencies of a package, the concrete used versions including overrides, in machine-readable format
cargo new
Create a new cargo package at <path>
cargo owner
Manage the owners of a crate on the registry
cargo package
Assemble the local package into a distributable tarball
cargo pkgid
Print a fully qualified package specification
cargo publish
Upload a package to the registry
cargo report
Generate and display various kinds of reports
cargo report future-incompatibilities
Reports any crates which will eventually stop compiling
cargo report help
Print this message or the help of the given subcommand(s)
cargo run
Run a binary or example of the local package
cargo rustc
Compile a package, and pass extra options to the compiler
cargo rustdoc
Build a package's documentation, using specified custom flags
cargo search
Search packages in crates.io
cargo test
Execute all unit and integration tests and build examples of a local package
cargo tree
Display a tree visualization of a dependency graph
cargo uninstall
Remove a Rust binary
cargo update
Update dependencies as recorded in the local lock file
cargo vendor
Vendor all dependencies for a project locally
cargo verify-project
Check correctness of crate manifest
cargo version
Show version information
cargo yank
Remove a pushed crate from the index
cargo help
Print this message or the help of the given subcommand(s)
cargo add
Add dependencies to a Cargo.toml manifest file
cargo remove
Remove dependencies from a Cargo.toml manifest file
OptionsOn cargo itself
--explain
Run `rustc --explain CODE` <explain>
--color
Coloring: auto, always, never <color>
--config
Override a configuration value <config>
-Z
Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details <unstable-features>
-h--help
Print help information
-V--version
Print version info and exit
--list
List installed commands
-v--verbose
Use verbose output (-vv very verbose/build.rs output)
-q--quiet
Do not print cargo log messages
--frozen
Require Cargo.lock and cache are up to date
--locked
Require Cargo.lock is up to date
--offline
Run without accessing the network