Cut an rkb release with cargo release and check the published binaries
RecipeVerified 29 Sep 2026Holds project: rkb
Recipe. When to use it, the steps, and what showed that they work.
When to use#
You publish a new rkb version.
Steps#
- On a clean trunk run
cargo release patch --execute(orminor) and answery. It sets the version inCargo.tomlandCargo.lock, commitschore: bump version to X, tagsvXand pushes trunk and the tag. - The pre-commit hook runs the tests inside that commit; if they fail with
index.lock.lock: File exists, see tests in a pre-commit hook. - The release workflow builds
linux-x86_64,linux-aarch64andmacos-aarch64archives, each with a.sha256. - Check the release: it is published (not a draft), every checksum matches,
filesays the Linux binaries are static and stripped, and both Linux binaries printrkb Xand return search results on glibc 2.28 (Debian 10, like an HPC login node). - The warning
updating rkb-core to X despite no changes made since tagis harmless: it appears when the only change is outside the crate folders, such as[profile.release]in the rootCargo.toml.
Evidence#
v0.0.1 to v0.0.2 (2026-09): after lto = "fat", codegen-units = 1 and strip = true in [profile.release], linux-aarch64 went from 15.1 MB to 8.7 MB and small commands from 16.2 ms to 12.8 ms per search or lint. panic = "abort" was left out because the hook catches panics. A failed first try (tests inside the hook) was reverted and cargo release patch --execute then made v0.0.2.
Also found by searching
- cargo release patch --execute -> warning: updating rkb-core to X despite no changes made since tag
- I'm publishing a new rkb version and want to know the steps and what to check on the release
- how do I cut an rkb release and verify the published Linux binaries are static and work on old glibc?
- rkb release workflow archives sha256, index.lock.lock: File exists in pre-commit hook during release
- how do I publish a new rkb version? cargo release patch --execute
- what steps are needed to cut an rkb release and verify the binaries and sha256?
- release workflow builds linux-x86_64 linux-aarch64 macos-aarch64 archives, how to check them