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:
parent
b01259c674
commit
2600ab05ee
18
sheets/_rust/Cargo
Normal file
18
sheets/_rust/Cargo
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user