Skip to content

Latest commit

 

History

History
59 lines (44 loc) · 2.15 KB

RELEASING.md

File metadata and controls

59 lines (44 loc) · 2.15 KB

Releasing stats-claw

Maintainer runbook for cutting a release to crates.io. This file is intentionally not part of the published crate (it is excluded from the include whitelist in Cargo.toml), so it stays in the repository only.

1. Pre-flight — all must be green

cargo test
cargo clippy --all-targets   # manifest is authoritative: deny groups fail; pedantic/nursery only warn
cargo fmt --check

The two verification layers (see VERIFICATION.md) are release gates rather than per-change gates:

cargo kani -Z stubbing       # 68 proof harnesses; also runs in CI on the `v*` tag
cargo +nightly miri test --lib -- distributions:: streaming:: \
  --skip batch_pdf_matches --skip scalar_ziggurat_fits_standard_normal

Kani needs cargo install --locked kani-verifier && cargo kani setup once. On Apple Silicon with an x86_64 default toolchain, prefix the Kani command with RUSTUP_TOOLCHAIN=stable-aarch64-apple-darwin.

2. Verify the package without uploading

cargo publish --dry-run   # packages + compiles from the tarball; "aborting upload due to dry run" = success
cargo package --list      # exactly what ships: src/**, README.md, CHANGELOG.md, LICENSE-MIT, LICENSE-APACHE

The --dry-run "ignoring test …/benchmark …" warnings are expected: tests/ and benches/ are intentionally excluded from the published tarball.

3. Bump version & changelog

  • Bump version in Cargo.toml.
  • Add the release entry to CHANGELOG.md.
  • Commit.

4. Publish

cargo login               # one-time: paste a token from https://crates.io/settings/tokens
cargo publish
git tag v<version> && git push origin v<version>

Notes

  • Publishing is permanent — a version cannot be deleted, only withdrawn with cargo yank (reverse with cargo yank --undo). Ship fixes as a new version.
  • The source repository can stay private; cargo publish uploads only the packaged crate (src/** + the docs/license files), never the repo's tests/, benches/, or reference/.
  • The crate name on crates.io is first-come; confirm stats-claw is available (or claimed by you) before the first publish.