cargo
Manage Rust projects and their module dependencies (crates). Some subcommands such as `build` have their own usage documentation.
More info →Options (3)
booleanBuild the Rust project in the current directory using the release profile
cargo {{[b|build]}} {{[-r|--release]}}-r, --releasebooleanBuild the Rust project in the current directory using the release profile
cargo {{[b|build]}} {{[-r|--release]}}-j, --jobsbooleanBuild using a specific number of threads (default is the number of logical CPUs)
cargo {{[b|build]}} {{[-j|--jobs]}} {{number_of_threads}}Examples (8)
Search for crates
cargo search search_stringInstall a binary crate
cargo install crate_nameList installed binary crates
cargo install --listCreate a new binary or library Rust project in the specified directory (or the current working directory by default)
cargo init --bin|lib path/to/directoryAdd a dependency to `Cargo.toml` in the current directory
cargo add dependencyBuild the Rust project in the current directory using the release profile
cargo [b|build] [-r|--release]Build the Rust project in the current directory using the nightly compiler (requires `rustup`)
cargo +nightly [b|build]Build using a specific number of threads (default is the number of logical CPUs)
cargo [b|build] [-j|--jobs] number_of_threads