-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
59 lines (45 loc) · 1.06 KB
/
justfile
File metadata and controls
59 lines (45 loc) · 1.06 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
# Default recipe: list available commands
default:
@just --list
eval:
cargo build
cp target/debug/wtime .
cargo clean
./wtime -t -0 -d "Compiling (.*)" -m 1 cargo build
# Format all code (Rust + Nix)
fmt:
treefmt
# Check formatting (Rust + Nix)
fmt-check:
treefmt --fail-on-change --no-cache
# Run clippy lints
lint:
cargo clippy --all-targets --all-features -- -D warnings
# Run all tests
test:
cargo test --all-features
# Run tests with verbose output
test-verbose:
cargo test --all-features -- --nocapture
# Build release
build:
cargo build --release --all-features
# Generate documentation
doc *args='':
cargo doc --no-deps --all-features {{args}}
readme:
cargo-readme-workspace
readme-check:
cargo-readme-workspace --check
# Run CI checks locally
ci: fmt-check lint test doc readme-check build
@echo "All CI checks passed!"
# Watch for changes and run tests
watch:
cargo watch -x test
# Clean build artifacts
clean:
cargo clean
# Review snapshot test changes
snap:
cargo insta test --review