From 05d68a00560e19bfb2cf41f64ce13e27ac5df0bb Mon Sep 17 00:00:00 2001 From: "Daniel Campoverde [alx741]" Date: Wed, 4 May 2016 20:39:32 -0500 Subject: [PATCH] cargo: add page --- pages/common/cargo.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages/common/cargo.md diff --git a/pages/common/cargo.md b/pages/common/cargo.md new file mode 100644 index 000000000..dbc5755ee --- /dev/null +++ b/pages/common/cargo.md @@ -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}}`