1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-31 06:18:17 +01:00
tldr/pages/common/cargo.md
Daniel Campoverde [alx741] 05d68a0056 cargo: add page
2016-05-04 20:39:32 -05:00

545 B

cargo

Rust package manager. Manage Rust projects and their module dependencies (crates).

  • Search for crates:

cargo search {{search_string}}

  • Install a crate:

cargo install {{crate_name}}

  • List installed crates:

cargo install --list

  • Create a new binary Rust project in the current directory:

cargo init --bin

  • Create a new library Rust project in the current directory:

cargo init

  • Build the Rust project in the current directory:

cargo build

  • Build with multiple parallel jobs:

cargo build -j {{jobs}}