cargo-publish

Automates validated publishing of Rust crates to crates.io with dependency ordering and git checks.

15|5|Updated May 19, 2026
One-click install
npx skills add https://github.com/bobmatnyc/trusty-tools --skill cargo-publish
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cargo-publish
Source: https://github.com/bobmatnyc/trusty-tools/tree/main/.claude/skills/cargo-publish
Command: npx skills add https://github.com/bobmatnyc/trusty-tools --skill cargo-publish

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill prevents common publishing errors such as publishing from unmerged branches, version collisions, and dependency ordering failures, ensuring a reliable and compliant release process for the trusty-tools workspace.

Core Features & Use Cases

  • Automated Safety Guards: Enforces strict checks for merged-main status, identity verification, and version parity before any publish attempt.
  • Dependency Ordering: Automatically computes and executes the correct publish sequence for crates with inter-dependencies to prevent registry errors.
  • Use Case: When releasing a suite of interconnected crates, use this skill to verify that all library dependencies are live on crates.io before publishing the main application, avoiding broken builds for end-users.

Quick Start

Use the cargo-publish skill to execute the pre-flight checks and publish the trusty-search crate to crates.io.

Frequently Asked Questions about cargo-publish

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Rust crate publishing to crates.io from a workspace?

Automating Rust crate publishing to crates.io requires enforcing strict git ancestry, version parity, and dependency-aware publish ordering to ensure validated uploads. This workflow computes the correct publish sequence for interconnected crates to prevent registry errors.

Why does cargo publish fail with dependency ordering errors in a Rust workspace?

Cargo publish fails with dependency ordering errors when inter-dependent crates are uploaded out of sequence. Automatically computing and executing the correct publish sequence ensures all library dependencies are live on the registry before publishing dependent crates.

How do I prevent version collisions when releasing Rust crates?

Preventing version collisions when releasing Rust crates involves enforcing strict version parity checks before any publish attempt. This automated safety guard validates workspace-wide version states against the registry to avoid broken builds for end-users.

Can I integrate automated crate uploads into a CI/CD pipeline for Rust projects?

Integrating automated crate uploads into a CI/CD pipeline for Rust projects requires local git access, cargo, and authenticated crates.io credentials. The workflow enforces merged-main status and identity verification to perform validated crate uploads.

How do I stop accidental Rust crate publishing from unmerged git branches?

Stopping accidental Rust crate publishing from unmerged git branches requires strict checks for merged-main status and identity verification before any publish attempt. These automated safety guards ensure a reliable and compliant release process.

What are the limitations of automating cargo publish for workspace releases?

Limitations of automating cargo publish include the strict requirement for local git access, cargo, and authenticated crates.io credentials. The workflow specifically targets workspace-wide release management and cannot perform uploads without validated ancestry and version parity.