cargo run
cargo build
- Hot Reload
cargo watch -x run
- Quiet Mode
cargo watch -q -c -x 'run -q'
- Silence unused warnings while learning (added in the top of the file)
#![allow(unused)]
cargo run --example
singular +file name
cargo run --example variable
Same for cargo watch.
cargo watch -c -q -x 'run -q --example variables'