-
-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathJustfile
More file actions
34 lines (23 loc) · 686 Bytes
/
Justfile
File metadata and controls
34 lines (23 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#! /usr/bin/env -S just --justfile
# Recipes to check correctness
check: cargo-check clippy-check fmt-check taplo-check
cargo-check:
RUSTFLAGS="-Dwarnings" cargo check
clippy-check:
cargo clippy -- -W clippy::pedantic -W clippy::correctness -W clippy::suspicious -W clippy::cargo
fmt-check:
cargo fmt --check
taplo-check:
taplo fmt --check
# Automatic fixup recipes
fix: cargo-fix clippy-fix fmt-fix taplo-fmt
cargo-fix:
cargo fix --allow-dirty
clippy-fix:
cargo clippy --fix --allow-dirty -- -W clippy::pedantic -W clippy::correctness -W clippy::suspicious -W clippy::cargo
fmt-fix:
cargo fmt
taplo-fmt:
taplo fmt
test:
cargo nextest run