Structured guide for choosing and integrating Rust crates, covering language interop, Cargo features, and common crate errors.

skills.sh installs
3.6K
GitHub stars
1.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers crate selection and integration: a decision table for serde, tokio, reqwest, axum, sqlx, clap, anyhow, and tracing
  • Includes language interop picks (bindgen, cbindgen, pyo3, napi-rs, wasm-bindgen) plus Cargo feature and workspace notes
  • Maps errors E0433, E0603, and version conflicts to causes and fixes, such as adding to Cargo.toml or unifying crate versions
  • Designed for Rust developers choosing dependencies and wiring up FFI, WebAssembly, or Python extension builds

Install

$ npx -y skills add actionbook/rust-skills --skill m11-ecosystem -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Current Dependencies (Auto-Injected)

!grep -A 100 '^\[dependencies\]' Cargo.toml 2>/dev/null | head -30 || echo "No Cargo.toml found"


Ecosystem Integration

Layer 2: Design Choices

Core Question

What's the right crate for this job, and how should it integrate?

Before adding dependencies:

  • Is there a standard solution?
  • What's the maintenance status?
  • What's the API stability?

Integration Decision → Implementation

NeedChoiceCrates
SerializationDerive-basedserde, serde_json
Async runtimetokio or async-stdtokio (most popular)
HTTP clientErgonomicreqwest
HTTP serverModernaxum, actix-web
DatabaseSQL or ORMsqlx, diesel
CLI parsingDerive-basedclap
Error handlingApp vs libanyhow, thiserror
LoggingFacadetracing, log

Thinking Prompt

Before adding a dependency:

  1. Is it well-maintained?

    • Recent commits?
    • Active issue response?
    • Breaking changes frequency?
  2. What's the scope?

    • Do you need the full crate or just a feature?
    • Can feature flags reduce bloat?

Details

Repository
github.com/actionbook/rust-skills
Categories
Rust, Skill & Plugin Building
First seen
May 16, 2026

More from actionbook/rust-skills

All 38

Similar to M11 Ecosystem

More Rust