Skip to content

release.sh --exec (sync Cargo.lock before the release commit); Rust crate release guide (0.3.7) - #34

Merged
loki-inu merged 2 commits into
mainfrom
docs/rust-crate
Nov 2, 2026
Merged

loki-inu merged 2 commits into
mainfrom
docs/rust-crate

Conversation

@loki-inu

@loki-inu loki-inu commented Nov 2, 2026

Copy link
Copy Markdown
Owner
  • examples/release.sh --exec CMD: runs CMD (bash) after the version bump and CHANGELOG.md, before the commit. Tracked files it changes are committed with the release (the tree is required clean at the start). NEXT_VERSION is exported. Shown in --dry-run. A failing command stops before commit/tag.
  • Why: after --bump-file Cargo.toml, Cargo.lock still holds the old version, so cargo publish --locked fails. --exec "cargo update --workspace" fixes that in the same commit.
  • New guide docs/rust-crate.html: Cargo.toml + Cargo.lock bump, CHANGELOG.md, tag; tag-push workflow (tag vs cargo metadata, cargo test --locked, crates.io trusted publishing via rust-lang/crates-io-auth-action@v1, cargo publish --locked, gh release create with the action's notes). actionlint clean.
  • tests/test_rust_crate_docs.py rebuilds the page's example with real cargo (offline), compares script output / release-commit files / CHANGELOG / Release body, checks cargo metadata --locked passes with --exec and fails without, and runs the tag check step. Skips if cargo is missing.
  • Version 0.3.7; pins bumped; linked from index, README, llms.txt, sitemap, python-package and standard-version pages.

@loki-inu
loki-inu merged commit 2c0e48b into main Nov 2, 2026
4 checks passed
@loki-inu
loki-inu deleted the docs/rust-crate branch November 2, 2026 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant