Skip to content

Rust tools setup

Original installation instructions for all operating systems

MacOS Homebrew

brew install rustup-init

# run `rustup-init`
# It will install rustc and cargo

Rust documentation

rustup doc

To update tool chain

rustup update

To create a new project

# For binary project
cargo new --bin <project_name>

# For library project
cargo new --lib <library_name>

To compile

# To compile and run at the same time
cargo run

# For development/debug build
cargo build

# For release build
cargo build --release

Idiomatic rust check

cargo clippy