Skip to content

Commit

Permalink
Add simple justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
widberg committed Sep 22, 2023
1 parent 7d6935c commit 80e22d9
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# just (https://github.com/casey/just)
# cargo-sort (https://github.com/DevinR528/cargo-sort)

set windows-shell := ["cmd.exe", "/c"]

cargo-command-prefix := env_var_or_default("CARGO_COMMAND_PREFIX", "")

fmt:
cargo +nightly {{cargo-command-prefix}} fmt
cargo {{cargo-command-prefix}} sort

clippy:
cargo {{cargo-command-prefix}} clippy

test:
cargo {{cargo-command-prefix}} test --release

build:
cargo {{cargo-command-prefix}} build --release

check: fmt clippy test

0 comments on commit 80e22d9

Please sign in to comment.