cargo test
If you want the optimized version:
RUST_MIN_STACK=8388608 cargo test --release
cargo run
If you want the optimized version:
cargo run --release
I usually use cargo watch
with the following arguments:
cargo watch \
-x 'fmt' \
-x 'test' \
-x 'clippy -- -W clippy::pedantic -W clippy::cargo' \
-x run \
-x 'run --release'