-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
80 lines (63 loc) · 1.51 KB
/
Justfile
File metadata and controls
80 lines (63 loc) · 1.51 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
79
80
# 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
test:
cargo test --all-features
# Run BDD scenarios (placeholder — no BDD crate yet)
bdd:
@echo "No BDD tests configured."
# Run all test suites
test-all:
cargo test --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
# 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
check-cn:
rg --line-number --column "\p{Han}"
# Full CI check
ci: lint test-all 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-tarpaulin
# Generate documentation for the workspace
docs:
cargo doc --no-deps --open