rust-scaffoldlisted
Install: claude install-skill Git-Fg/taches-principled
# rust-scaffold
The project-init layer for Rust: scaffolding a new crate, the lib/bin decision,
the Cargo.toml template, MSRV policy, feature flag design, the lib+bin code
layout, rustdoc conventions, and edition migration. For CI/lint/testing setup,
use `rust-quality`. For workspace structure, use `rust-workspace`. For
publishing, use `rust-release`.
---
## §1. When this skill fires
**Use this skill when the user says any of:**
- "Scaffold a new Rust project"
- "Cargo.toml template"
- "lib + bin project layout"
- "Feature flag design"
- "Pick an MSRV for a new project"
- "Migrate to edition 2024"
- "Write rustdoc for my crate"
- "Add an example to my crate"
**DO NOT use this skill for:**
## CONTRAST
- NOT for: CI / clippy / nextest / deny — use rust-quality
- NOT for: workspace / member coordination — use rust-workspace
- NOT for: version / publish / deprecation — use rust-release
- This skill is the project-init layer; the others are for ongoing concerns
---
## §2. Reference index
The mechanism content lives in references/. Read the right one before scaffolding the corresponding piece. The hub itself is a router — it points you at the right reference, the references carry the mechanism.
You MUST read `references/cargo-and-features.md` BEFORE writing a new Cargo.toml or designing features. It teaches the lib-only / bin-only / lib+bin decision tree (with the "default to lib+bin" rule for anything that may grow), the recommended Cargo.toml template (edition 2024, MS