-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
62 lines (48 loc) · 1.55 KB
/
justfile
File metadata and controls
62 lines (48 loc) · 1.55 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Show help
default:
@just --list
init:
uv tool install prek
uv tool install rumdl
uv tool install ruff
uv tool install rust-just
prek install --hook-type commit-msg --hook-type pre-push
# Build release binary
build:
cargo build --release
# Run tests with nextest (skips #[ignore] tests by default)
nextest:
cargo nextest run --workspace --all-features --no-fail-fast
# Run nextest including all tests (with #[ignore])
nextest-all:
cargo nextest run --release --workspace --all-features --run-ignored all --no-fail-fast
# Format code
fmt:
cargo fmt --all
# Check formatting (CI style)
fmt-check:
cargo fmt --all --check
# Run clippy (CI style)
clippy:
cargo clippy --all-targets --workspace --all-features -- -D warnings
# Check documentation (CI style)
doc-check:
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --document-private-items --workspace --all-features
# Run quick: fix/fmt/clippy will be fixed
quick: fix doc-check nextest
# Run all CI checks including slow/ignored tests
ci: fmt-check clippy doc-check nextest-all
# Auto-fix clippy warnings and format
fix:
cargo fix --allow-dirty --allow-staged --all-targets --workspace --all-features
cargo clippy --fix --allow-dirty --allow-staged --all-targets --workspace --all-features -- -D warnings
cargo fmt --all
# Generate documentation
doc:
cargo doc --no-deps --open
# Generate coverage report (requires cargo-tarpaulin)
cov:
cargo tarpaulin --all-features --workspace --exclude-files 'src/bin/*'
# Clean build artifacts
clean:
cargo clean