cargo-rust

plurigrid's avatarfrom plurigrid

Rust package manager and build system. Cargo commands, dependency management, and workspace patterns.

⭐1stars🔀2forks📁View on GitHub🕐Updated Jan 9, 2026

When & Why to Use This Skill

The cargo-rust skill empowers Claude to act as a proficient Rust developer assistant by integrating the industry-standard Cargo package manager and build system. It streamlines the entire Rust development lifecycle, from project initialization and dependency resolution to build orchestration, testing, and workspace management. By automating these core tasks, it ensures high-performance code delivery and maintains project consistency through rigorous constraint checking and build verification.

Use Cases

  • Automated Dependency Management: Efficiently add, update, and manage Rust crates and their specific features using 'cargo add' to maintain a lean and functional project structure.
  • Build and Test Orchestration: Streamline the development loop by executing builds, running comprehensive test suites, and performing fast 'cargo check' operations to ensure code reliability.
  • Complex Workspace Management: Organize and maintain large-scale Rust projects with multiple crates using standardized workspace patterns for centralized dependency and version control.
  • Continuous Integration and Quality Assurance: Integrate 'clippy' and build verification steps into automated workflows to enforce Rust best practices and catch potential errors early in the development cycle.
namecargo-rust
descriptionRust package manager and build system. Cargo commands, dependency management, and workspace patterns.
version1.0.0

Cargo Rust Skill

Trit: -1 (MINUS - build verification and constraint checking)
Foundation: Cargo + rustc + crates.io

Core Concept

Cargo manages Rust projects with:

  • Dependency resolution
  • Build orchestration
  • Testing and benchmarking
  • Publishing to crates.io

Commands

# Build
cargo build
cargo build --release

# Test
cargo test
cargo test --lib

# Check (fast)
cargo check
cargo clippy

# Run
cargo run
cargo run --release

# Add dependency
cargo add serde
cargo add serde --features derive

Workspace Pattern

# Cargo.toml (workspace root)
[workspace]
members = ["crates/*"]
resolver = "2"

[workspace.dependencies]
serde = { version = "1.0", features = ["derive"] }

GF(3) Integration

fn trit_from_build(result: &BuildResult) -> i8 {
    match result {
        BuildResult::Error(_) => -1,   // MINUS: compilation failure
        BuildResult::Warning(_) => 0,  // ERGODIC: warnings
        BuildResult::Success => 1,     // PLUS: clean build
    }
}

Canonical Triads

cargo-rust (-1) ⊗ acsets (0) ⊗ gay-mcp (+1) = 0 ✓
cargo-rust (-1) ⊗ nickel (0) ⊗ world-hopping (+1) = 0 ✓

Scientific Skill Interleaving

This skill connects to the K-Dense-AI/claude-scientific-skills ecosystem:

Graph Theory

  • networkx [○] via bicomodule
    • Universal graph hub

Bibliography References

  • general: 734 citations in bib.duckdb

Cat# Integration

This skill maps to Cat# = Comod(P) as a bicomodule in the equipment structure:

Trit: 0 (ERGODIC)
Home: Prof
Poly Op: ⊗
Kan Role: Adj
Color: #26D826

GF(3) Naturality

The skill participates in triads satisfying:

(-1) + (0) + (+1) ≡ 0 (mod 3)

This ensures compositional coherence in the Cat# equipment structure.