-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
64 lines (51 loc) · 1.25 KB
/
Justfile
File metadata and controls
64 lines (51 loc) · 1.25 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
63
64
# Default recipe to display help
default:
@just --list
# Format all code
format:
rumdl fmt .
taplo fmt
cargo +nightly fmt --all
# Auto-fix linting issues
fix:
rumdl check --fix .
# Run all lints
lint:
typos
rumdl check .
taplo fmt --check
cargo +nightly fmt --all -- --check
cargo +nightly clippy --all -- -D warnings
cargo machete
# Run tests with cargo-nextest (falls back to cargo test if nextest is not installed)
test:
cargo nextest run --all-features
# Run tests with coverage
test-coverage:
cargo tarpaulin --all-features --workspace --timeout 300
# Build entire workspace
build:
cargo build --workspace
# Check all targets compile
check:
cargo check --all-targets --all-features
# Check for Chinese characters
check-cn:
rg --line-number --column "\p{Han}"
# Full CI check
ci: lint test build
# ============================================================
# Maintenance & Tools
# ============================================================
# Clean build artifacts
clean:
cargo clean
# Install all required development tools
setup:
cargo install cargo-machete
cargo install taplo-cli
cargo install typos-cli
cargo install cargo-nextest
# Generate documentation for the workspace
docs:
cargo doc --no-deps --open