Skip to content

Instantly share code, notes, and snippets.

@matthewjberger
Created August 1, 2024 08:06
Show Gist options
  • Save matthewjberger/f5fcb1258a829aec4be4d2c179e16afc to your computer and use it in GitHub Desktop.
Save matthewjberger/f5fcb1258a829aec4be4d2c179e16afc to your computer and use it in GitHub Desktop.
A rust justfile with common commands
set windows-shell := ["powershell.exe"]
export RUST_LOG := "info"
export RUST_BACKTRACE := "1"
@just:
just --list
build:
cargo build -r
check:
cargo check --all --tests
cargo fmt --all --check
format:
cargo fmt --all
fix:
cargo clippy --all --tests --fix
lint:
cargo clippy --all --tests -- -D warnings
run:
cargo run -r
test:
cargo test --all -- --nocapture
@versions:
rustc --version
cargo fmt -- --version
cargo clippy -- --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment