Skip to content

Commit a39b6f5

Browse files
committed
Add a justfile
Introduce usage of `just` by adding a justfile.
1 parent 7207926 commit a39b6f5

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

justfile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
[private]
2+
default:
3+
@just --list
4+
5+
6+
# run `cargo build` on everything
7+
build:
8+
cargo build --workspace --all-targets
9+
10+
11+
# run `cargo check` on everything
12+
check:
13+
cargo check --workspace --all-targets
14+
15+
16+
# run code formatter
17+
format:
18+
cargo +nightly fmt
19+
20+
21+
# run tests
22+
test: build
23+
cargo test --all-features
24+
25+
26+
# run `cargo clippy` on everything
27+
clippy:
28+
cargo clippy --locked --offline --workspace --all-targets -- --deny warnings
29+
30+
# run `cargo clippy --fix` on everything
31+
clippy-fix:
32+
cargo clippy --locked --offline --workspace --all-targets --fix

0 commit comments

Comments
 (0)