-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
89 lines (70 loc) · 1.92 KB
/
Justfile
File metadata and controls
89 lines (70 loc) · 1.92 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
81
82
83
84
85
86
87
88
89
# 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 both TDD and BDD suites
test-all:
cargo test --all-features
# Run tests with coverage
test-coverage:
cargo tarpaulin --all-features --workspace --timeout 300
# Benchmark the merchant verification hot path
bench:
cargo bench -p ledgerflow-core
# Type-check the fuzz targets without running an open-ended fuzz session
fuzz-check:
cd crates/ledgerflow-core && cargo fuzz check decode_warrant
cd crates/ledgerflow-x402 && cargo fuzz check parse_extension
# Run short fuzzing smoke tests for the protocol boundaries
fuzz-smoke:
cd crates/ledgerflow-core && cargo fuzz run decode_warrant -- -max_total_time=1
cd crates/ledgerflow-x402 && cargo fuzz run parse_extension -- -max_total_time=1
# 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
# Generate documentation for the workspace
docs:
cargo doc --no-deps --open