cargo: add page

This commit is contained in:
Daniel Campoverde [alx741] 2016-05-04 20:39:32 -05:00
parent b61acdf8a0
commit 05d68a0056

32
pages/common/cargo.md Normal file
View File

@ -0,0 +1,32 @@
# 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}}`