Rust - Hello, Cargo!

cargo logo pixel art

Cargo is Rust’s build system and package manager.


Cargo Installation

Installed with rust
Rust - Hello, World!


Cargo.toml & Cargo.lock


Create a project

$ cargo new <project-name>

Run a project

$ cargo run

Build a project

$ cargo build # <- debug mode
$ cargo build --release # <- release mode

Add a dependency

$ cargo add <package-name>

Remove a dependency

$ cargo remove <package-name>