-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
78 lines (62 loc) · 1.56 KB
/
Copy pathJustfile
File metadata and controls
78 lines (62 loc) · 1.56 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Default recipe to display help
default:
@just --list
# Format all code
format:
rumdl fmt .
cargo sort -w -g
cargo +nightly fmt --all
# Auto-fix linting issues
fix:
rumdl check --fix .
RUSTC_WRAPPER= cargo +nightly clippy --fix --all --allow-dirty
# Run all lints
lint:
typos
rumdl check .
cargo sort -w -g -c
cargo +nightly fmt --all -- --check
RUSTC_WRAPPER= cargo +nightly clippy --all -- -D warnings
RUSTC_WRAPPER= cargo shear
# Run tests
test:
cargo test --all-features
# Run mutation tests with cargo-mutants
mutation:
cargo mutants
# 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
# Publish all crates to crates.io (dry run)
publish-check:
cargo publish --workspace --dry-run --allow-dirty
# Publish all crates to crates.io
publish:
cargo publish --workspace
# Check for Chinese characters (fail when any are found)
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-mutants
cargo install cargo-shear
cargo install cargo-sort
cargo install typos-cli
cargo install rumdl
# Generate documentation for the workspace
docs:
cargo doc --no-deps --open