No slash command · from fuse-rust
Maps Rust project domains to de-facto standard crates (serde, clap, tokio, axum, sqlx, thiserror, anyhow, tracing) with selection criteria and version-verification discipline.
Ships in fuse-rust. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
It also covers matching an existing project's Cargo.toml conventions before introducing a competing crate, and the version-verification discipline (never trust a remembered patch number; confirm current versions on crates.io/Context7/Exa).
Out of scope: once a crate is chosen, its detailed API usage belongs to the matching domain skill (rust-web-backend, rust-async-concurrency, rust-error-handling) or direct docs verification (docs.rs/crates.io → Context7 → Exa).
Before ANY crate selection, spawn 3 agents in parallel, one Agent call each with a name:
Cargo.toml to match established choicesAfter implementation, run fuse-ai-pilot:sniper for validation.
| Domain | De-facto standard (2026) | Reach for it when |
|---|---|---|
| Serialization | serde (+ serde_json) | Any (de)serialization; derive Serialize/Deserialize |
| CLI parsing | clap (derive API) | Argument parsing, subcommands, help generation |
| Async runtime | tokio | Almost all async I/O; the ecosystem default |
| Web framework | axum | HTTP servers on tokio + tower middleware |
| HTTP client | reqwest | Outbound HTTP, JSON, TLS |
| Database | sqlx / sea-orm / diesel | See db-and-async.md for the choice |
| Error (libraries) | thiserror | Typed error enums in a library's public API |
| Error (apps) | anyhow | Ergonomic Result with context in binaries |
| Observability | tracing (+ tracing-subscriber) | Structured, async-aware logs and spans |
Cargo.toml - versions move faster than this skill. Confirm on crates.io or via Context7; never paste a remembered patch number.serde 2.0 is NOT stable - it is under discussion. Depend on serde = "1" today; do not write 2.0.thiserror for libraries, anyhow for applications - never expose anyhow::Error in a library's public API.tokio; mixing runtimes causes executor conflicts.Cargo.toml before introducing a competing crate.Cargo.toml
├── [dependencies]
│ ├── serde / serde_json # data
│ ├── tokio (features = [...]) # runtime
│ ├── axum / reqwest # web in/out
│ ├── sqlx | sea-orm | diesel # persistence (pick one)
│ ├── thiserror | anyhow # errors (lib vs app)
│ └── tracing / tracing-subscriber
→ See cargo-toml-stack.md for a complete manifest
| Topic | Reference | When to Consult |
|---|---|---|
| Decision map | crate-decision-map.md | Choosing per domain, error strategy, observability |
| DB & async | db-and-async.md | sqlx vs sea-orm vs diesel, tokio + axum wiring |
| Template | When to Use |
|---|---|
| cargo-toml-stack.md | Scaffolding a web-service manifest |
// Library: typed, matchable errors.
#[derive(thiserror::Error, Debug)]
pub enum StoreError {
#[error("not found: {0}")]
NotFound(String),
}
// Application: contextual, any error.
use anyhow::Context;
let cfg = std::fs::read_to_string(path).context("reading config")?;
→ See crate-decision-map.md for the full rationale
tokio and enable only the features you usethiserror in libraries, anyhow in binariesserde = "2" — it is not stableanyhow::Error from a library APIWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub fusengine/claude-plugins --plugin fuse-rust7 skills in this plugin
/rust-async-concurrencyUse when writing async Rust — spawning tasks, sharing state across tasks/threads, choosing channels vs mutexes, or hitting Send-bound errors with async traits. Not for HTTP service structure (rust-web-backend) or sync-only ownership (rust-core-language)./rust-core-languageUse when writing or reviewing idiomatic Rust — edition 2024 ownership/borrowing design, or fixing LLM pitfalls (clone tax, unwrap infestation, indexed loops). Not for error-type design (rust-error-handling) or SOLID layout (solid-rust)./rust-error-handlingUse when designing Rust error handling — thiserror vs anyhow, typed error enums,/rust-testing-qualityUse when writing, organizing, or running Rust tests — unit, integration, doc-tests, proptest, criterion benchmarks, or cargo-mutants. Not for CI pipeline wiring (rust-tooling-cicd)./rust-tooling-cicdUse when structuring a Cargo workspace or building a Rust CI pipeline — fmt, clippy, cargo-deny/audit, nextest, coverage, MSRV. Not for writing the tests themselves (rust-testing-quality)./rust-web-backendUse when building a REST/HTTP backend in Rust — axum routing, extractors, shared state, middleware, error responses, sqlx database access. Not for raw async/concurrency (rust-async-concurrency).Other plugins' skills for the same job