# Aprender justfile - Cross-platform build automation
# Usage: just <recipe>
# Install: cargo install just
# Default recipe
default: test
# Build release binary
build:
cargo build --release
# Run all tests
test:
cargo test --all-features
# Run unit tests only (fast)
test-unit:
cargo test --lib
# Run property tests
test-prop:
PROPTEST_CASES=256 cargo test --test property_tests
# Lint with clippy
lint:
cargo clippy --all-targets --all-features -- -D warnings
# Format check
fmt:
cargo fmt --all -- --check
# Format fix
fmt-fix:
cargo fmt --all
# Run benchmarks
bench:
cargo bench
# Check compilation
check:
cargo check --all-features
# Run documentation build
doc:
cargo doc --no-deps --all-features
# Coverage report
coverage:
cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
# Security audit
audit:
cargo audit
# Full quality gate (tier2)
tier2: fmt lint test
# Pre-push gate (tier3)
tier3: fmt lint test doc audit