Validation
Run in the Bonk repository before opening a pull request. Every line must pass; CI runs the same checks.
cargo fmt --all --check
cargo clippy --workspace --all-targets --locked \
-- -D warnings
cargo test --workspace --locked
cargo deny check
cargo build --workspace --release --locked
Cross lint, with a neutral C compiler for ring:
rustup target add x86_64-pc-windows-gnu \
i686-pc-windows-gnu x86_64-apple-darwin \
aarch64-linux-android
CC_x86_64_pc_windows_gnu=true \
AR_x86_64_pc_windows_gnu=true \
cargo clippy --workspace --all-targets --locked \
--target x86_64-pc-windows-gnu -- -D warnings
Repeat the last command for i686-pc-windows-gnu and x86_64-apple-darwin. For Android, lint bonk-core, bonk-ops, bonk-cli, bonk-android and bonk-ui only.
Workflows: actionlint and zizmor on .github, no finding.
Boot code: after a change under crates/bonk-core/src/boot, run boot/assemble.sh and check that git diff shows nothing; the BIOS boot workflow must pass.
Image analysis: a change to the analysis code is replayed on the test image corpus; the classification stays the same or the change is explained in the pull request.
Tests never open a real disk and never depend on the clock.