Created
August 1, 2024 08:06
-
-
Save matthewjberger/f5fcb1258a829aec4be4d2c179e16afc to your computer and use it in GitHub Desktop.
A rust justfile with common commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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