Build Cargo Project

We can build a project using cargo build

cargo build

Run Cargo Project

We can build and run a project in one step using cargo run

cargo run

Check Cargo Project

We can build a project without producing a binary to check for errors using cargo check.

cargo check

Build Cargo Project for release

cargo build --release

Rust’s naming convention for constants is to use all uppercase with underscores between words, and underscores can be inserted in numeric literals to improve readability

Pull request checks