2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-19 03:25:44 +00:00

Added page for Cargo package manager.

This commit is contained in:
Thomas Sullivan 2019-08-02 07:46:07 -05:00
parent b01259c674
commit 2600ab05ee

18
sheets/_rust/Cargo Normal file
View File

@ -0,0 +1,18 @@
// Using the Cargo package manager
// See also: https://doc.rust-lang.org/cargo/
// Create a new package with Cargo
cargo new hello_world
// Build a package with Cargo
cargo build
// Build and run a package with Cargo
cargo run
// Build a package with Cargo for release
cargo build --release
// Clean all output build files and targets
cargo clean