cargo-conventions

Automate Cargo.toml configuration, workspace setup, and publishing conventions for Rust crates.

Updated Feb 7, 2026
One-click install
npx skills add https://github.com/jsamuelsen11/claude-config --skill cargo-conventions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cargo-conventions
Source: https://github.com/jsamuelsen11/claude-config/tree/main/plugins/ccfg-rust/skills/cargo-conventions
Command: npx skills add https://github.com/jsamuelsen11/claude-config --skill cargo-conventions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Rust projects often struggle with inconsistent Cargo.toml structures, scattered workspace configurations, and ad-hoc publishing setups. This skill provides a canonical set of conventions to unify how dependencies, features, lint settings, and build profiles are organized across crates.

Core Features & Use Cases

  • Canonical Cargo.toml structure and section ordering across packages to improve readability and maintainability.
  • Unified workspace management and dependency handling for multi-crate Rust repos, including consistent publish and MSRV practices.
  • Lint configuration and build profile guidelines embedded in Cargo.toml to ensure reproducible, standards-compliant crates.

Quick Start

Apply the prescribed Cargo.toml structure and workspace layout to initialize and align your Rust project.

Frequently Asked Questions about cargo-conventions

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

FAQPage Schema
How do I enforce a consistent Cargo.toml structure across multiple Rust crates?

You can enforce a consistent Cargo.toml structure by applying a canonical section ordering and workspace inheritance rules across all crates, ensuring unified dependency management and maintainability for multi-crate Rust repositories.

What's the best way to manage shared dependencies and feature flags in a Rust workspace?

The best way to manage shared dependencies and feature flags is through unified workspace management, which centralizes dependency handling and standardizes feature flag configuration within the root Cargo.toml for all member crates.

How do I configure lints and build profiles in Cargo.toml for Rust crates?

You configure lints and build profiles by embedding lint configuration and build profile guidelines directly into Cargo.toml, ensuring reproducible and standards-compliant crate builds across the entire Rust workspace.

When do I need to specify MSRV and publishing conventions for Rust crates?

You need to specify the Minimum Supported Rust Version (MSRV) and publishing conventions whenever preparing crates for release, ensuring consistent publish practices and compatibility standards across a multi-crate repository.

Can I standardize workspace inheritance for Rust crates with different build configurations?

Yes, you can standardize workspace inheritance across crates with varying build configurations by applying a canonical Cargo.toml structure that unifies build profile conventions and dependency management practices.

Why does my multi-crate Rust repository have scattered workspace configurations?

Multi-crate Rust repositories often suffer from scattered configurations due to ad-hoc setups; applying a canonical set of Cargo conventions unifies workspace layout, dependency handling, and section ordering.