Another project
1default:
2 @just --list
3
4check:
5 cargo check --workspace --all-targets --all-features
6
7build:
8 cargo build --workspace
9
10build-release:
11 cargo build --workspace --release
12
13run:
14 cargo run -p bone-app
15
16test:
17 cargo test --workspace --all-features
18
19clippy:
20 cargo clippy --workspace --all-targets --all-features -- -D warnings
21
22snap:
23 cargo insta test --workspace --all-features
24
25snap-review:
26 cargo insta review
27
28snap-accept:
29 cargo insta accept
30
31fmt:
32 cargo fmt --all
33
34fmt-check:
35 cargo fmt --all -- --check
36
37lint: fmt-check clippy
38
39license:
40 cargo deny check licenses
41
42prove-determinism:
43 @find crates -name '*.snap.new' -delete
44 @echo "run 1 / 2 (debug)"
45 CARGO_INCREMENTAL=0 INSTA_UPDATE=no cargo test --workspace --all-features --locked --quiet
46 @if find crates -name '*.snap.new' -print -quit | grep -q .; then echo "snapshot drift in run 1" >&2; exit 1; fi
47 @echo "run 2 / 2 (debug)"
48 CARGO_INCREMENTAL=0 INSTA_UPDATE=no cargo test --workspace --all-features --locked --quiet
49 @if find crates -name '*.snap.new' -print -quit | grep -q .; then echo "snapshot drift in run 2" >&2; exit 1; fi
50 @echo "run 1 / 2 (release)"
51 CARGO_INCREMENTAL=0 INSTA_UPDATE=no cargo test --workspace --all-features --locked --release --quiet
52 @if find crates -name '*.snap.new' -print -quit | grep -q .; then echo "snapshot drift in release run 1" >&2; exit 1; fi
53 @echo "run 2 / 2 (release)"
54 CARGO_INCREMENTAL=0 INSTA_UPDATE=no cargo test --workspace --all-features --locked --release --quiet
55 @if find crates -name '*.snap.new' -print -quit | grep -q .; then echo "snapshot drift in release run 2" >&2; exit 1; fi
56 @echo "determinism: clean across two debug + two release runs"