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
# sepa — development task runner
# Install just: https://just.systems/man/en/
default:
@just --list --unsorted
# Check formatting without making changes.
fmt-check:
cargo fmt --all --check
# Format all source files.
fmt:
cargo fmt --all
# Run Clippy on all targets and features (warnings are errors).
lint:
RUSTFLAGS="-D warnings" cargo clippy --all-targets --all-features -- -D warnings
# Quick type-check (fastest feedback loop).
check:
cargo check --all-targets --all-features
# Run unit + doc tests with default features.
test *ARGS:
cargo test {{ ARGS }}
# Run tests with all features enabled.
test-all:
RUSTFLAGS="-D warnings" cargo test --all-targets --all-features
# Run tests with no default features.
test-no-features:
RUSTFLAGS="-D warnings" cargo test --all-targets --no-default-features
# Test against the declared MSRV (requires `rustup toolchain install 1.85`).
test-msrv:
cargo +1.85 test --all-targets --all-features
# Run a specific test by name filter.
test-one FILTER:
cargo test --all-features {{ FILTER }}
# Full CI gate — run before every commit.
ci: fmt-check lint test-all test-no-features
@echo "CI gate passed."
# ── Examples ──────────────────────────────────────────────────────────────────
# Run all examples.
examples: example-sepa-batch
# Run the SEPA payment batch example.
example-sepa-batch:
cargo run --example sepa_batch
# ── Documentation ─────────────────────────────────────────────────────────────
# Build and open documentation in the browser.
doc:
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features --open
# Build documentation without opening (useful in CI).
doc-build:
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features
# ── Security ──────────────────────────────────────────────────────────────────
# Audit dependencies for known vulnerabilities (requires `cargo install cargo-audit`).
audit:
cargo audit