rust-crates-publishing
Made by JeffPublish Rust crates to crates.io. Use when cargo publish, crates.io tokens, GitHub Actions release workflows, or version/tag alignment are needed.
From Jeffrey's Skills.md: professionally crafted skills for any AI agent, installed and kept in sync by the jsm CLI. Subscription only, $20/month.
Works With
Quality and Utility come from canonical skill metadata. Community ratings appear separately as stars when subscriber reviews exist.
Subscribe to download
Public previews are available, but downloads, CLI sync, and premium content require an active subscription.
Sign In to Subscribe- Full skill content with deterministic versioning
- CLI sync + local search index
- Access to Jeffrey’s premium library
Save to your account
Saved skills live in your cloud list. Run jsm sync on each machine to pull them locally.
What's New with this Skill
1Updates, enhancements, and release notes for this skill.
New: Rust Crates Publishing, a release workflow that publishes on tag, gates on non-pre-release, and dry-runs before it ships
Publishing to crates.io is one cargo command, but the GitHub Actions wiring around it is where releases break. This skill is the canonical workflow: tag triggers, manual dispatch fallback, the CARGO_REGISTRY_TOKEN secret, pre-release gating, and a local dry run that catches metadata errors before you push the tag.
- Publish job runs on tag, gated by if: ${{ !contains(github.ref, '-') }} so pre-release tags (v1.2.3-rc1) skip publication. It runs last (needs: release) to avoid partial releases
- CARGO_REGISTRY_TOKEN secret in GitHub repo settings; the workflow skips publish if the secret is missing rather than failing the job
- Tag-version alignment is mandatory: tag v1.2.3 must match package.version = "1.2.3" in Cargo.toml
- cargo publish --dry-run and cargo package --list locally before pushing the tag. Common failures it surfaces: readme not found, missing license, and version already uploaded
- Workspaces publish dependency crates first with cargo publish -p, then the top-level crate. Never publish from PRs or forks