{% raw %}arm_target := "aarch64-unknown-linux-gnu" default: @just --list # Build debug binary build *args: cargo build {{args}} # Build optimized release binary (x86_64) build-release: cargo build --release # Cross-compile ARM64 release binary build-arm: cargo build --release --target {{arm_target}} # Run locally with arguments run *args: cargo run -- {{args}} # Fast type and borrow check check: cargo check --all-targets --all-features # Format all Rust code fmt: cargo fmt --all # Check formatting without modifying files fmt-check: cargo fmt --all -- --check # Run Clippy with all warnings denied lint: cargo clippy --all-targets --all-features -- -D warnings # Run all unit and integration tests test *args: cargo test --all-targets --all-features {{args}} # Run full CI quality gate locally (format check, clippy, tests) ci: fmt-check lint test # Preview changelog for unreleased commits changelog-preview: git-cliff --unreleased # Dry-run a version bump (patch, minor, major) release-dry level="patch": cargo release {{level}} # Execute a version bump, update CHANGELOG.md via git-cliff, tag, and push release level="patch": cargo release {{level}} --execute # Remove build artifacts clean: cargo clean {% endraw %}