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.
cargo test
cargo clippy --all-targets # manifest is authoritative: deny groups fail; pedantic/nursery only warn
cargo fmt --checkThe 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_normalKani 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.
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-APACHEThe --dry-run "ignoring test …/benchmark …" warnings are expected: tests/ and
benches/ are intentionally excluded from the published tarball.
- Bump
versioninCargo.toml. - Add the release entry to
CHANGELOG.md. - Commit.
cargo login # one-time: paste a token from https://crates.io/settings/tokens
cargo publish
git tag v<version> && git push origin v<version>- Publishing is permanent — a version cannot be deleted, only withdrawn with
cargo yank(reverse withcargo yank --undo). Ship fixes as a new version. - The source repository can stay private;
cargo publishuploads only the packaged crate (src/**+ the docs/license files), never the repo'stests/,benches/, orreference/. - The crate name on crates.io is first-come; confirm
stats-clawis available (or claimed by you) before the first publish.