Ray's Knowledge Base
Unlock

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#

  1. On a clean trunk run cargo release patch --execute (or minor) and answer y. It sets the version in Cargo.toml and Cargo.lock, commits chore: bump version to X, tags vX and pushes trunk and the tag.
  2. 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.
  3. The release workflow builds linux-x86_64, linux-aarch64 and macos-aarch64 archives, each with a .sha256.
  4. Check the release: it is published (not a draft), every checksum matches, file says the Linux binaries are static and stripped, and both Linux binaries print rkb X and return search results on glibc 2.28 (Debian 10, like an HPC login node).
  5. The warning updating rkb-core to X despite no changes made since tag is harmless: it appears when the only change is outside the crate folders, such as [profile.release] in the root Cargo.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