cargo

cargo

TLDR

Search for crates

>_ cargo search [search_string]
copy

Install a crate

>_ cargo install [crate_name]
copy

List installed crates

>_ cargo install --list
copy

Create a new binary or library Rust project in the current directory

>_ cargo init --[bin|lib]
copy

Create a new binary or library Rust project in the specified directory

>_ cargo new [path/to/directory] --[bin|lib]
copy

Build the Rust project in the current directory

>_ cargo build
copy

Build using a specific number of threads (default is the number of CPU cores)

>_ cargo build -j [jobs]
copy

Copied to clipboard
free 100$ digital ocean credit