# FireForge development recipes
# Run all CI quality checks locally
ci:
cargo fmt --check
just ci-post-fmt
ci-post-fmt:
cargo check
cargo machete
cargo clippy --all-targets -- -D warnings
cargo build --tests
cargo nextest run --no-fail-fast
cargo test --doc
# Run CI with all feature combinations
ci-all-features:
cargo fmt --check
just check-all-features
cargo machete
just clippy-all-features
just test-all-features
# Format code and update README.md
fmt: fmt-fix readme-fix
# Check for compiler errors/warnings
check:
cargo check
# Check all feature combinations
check-all-features:
cargo hack check --feature-powerset
# Run clippy linter
clippy:
cargo clippy --all-targets -- -D warnings
# Run clippy on all feature combinations
clippy-all-features:
RUSTFLAGS="-Zmacro-backtrace" cargo +nightly hack clippy --feature-powerset --all-targets -- -D warnings
# Run tests
test: test-code test-docs
test-code:
cargo nextest run
test-docs:
cargo test --doc
# Test all feature combinations
test-all-features:
cargo hack test --feature-powerset
fmt-fix:
cargo fmt
readme-fix:
cargo readme --output README.md
machete-fix:
cargo machete --fix || true
# Run all quality checks and fix formatting
fix: readme-fix machete-fix fmt-fix ci