Rust Programming Language
Entry point for Rust development. Provides an overview and routes to focused skills.
Available Skills
This plugin provides focused skills for specific Rust topics:
- rust:ownership - Ownership rules, borrowing, slices, lifetimes
- rust:error-handling - Result, Option, ? operator, custom error types
- rust:anti-patterns - Anti-patterns and clippy anti-idioms to hunt and fix
- rust:async - Async functions, tokio, streams, threads, channels, shared state
- rust:testing - Unit tests, integration tests, cargo test, Cargo.toml, commands
- rust:troubleshooting - Best practices, common patterns, idiomatic Rust
- rust:cli - Argument parsing with clap, CLI output and progress, exit codes, testing CLI binaries
For core language features (traits, generics, collections, pattern matching), see references/language.md.
Quick Start
# Install via mise
mise use rust@latest
# Create a new project
cargo new myproject
cd myproject
# Build and run
cargo run
See templates/mise.toml for project task definitions.
Key Principles
- Ownership ensures memory safety: no garbage collector needed
- Borrow checker prevents data races: compile-time safety
- Zero-cost abstractions: high-level code compiles to efficient machine code
- Explicit over implicit: be clear about ownership, mutability, errors
- Prefer immutability: use
mut only when needed
- Use the type system: let the compiler catch errors
- Test thoroughly: tests are first-class in Rust
- Use clippy: catch common mistakes and non-idiomatic code
Anti-fabrication
This skill follows core:anti-fabrication. Every claim about Rust language behavior, the
standard library, and tooling commands is verified against the official documentation cited
in sources.md — not inferred from generic familiarity with the language. Before asserting a
language feature, API signature, or command behavior this skill and its references do not
cover, check the installed Rust toolchain's documentation (rustup doc) or crates.io rather
than guessing.
1---2name: rust3description: Guide for Rust programming language. Use when writing Rust code, setting up Rust projects, or needing an overview of Rust development workflows.4metadata:5 source: https://skillmd.com/skills/vinnie357/rust6---78# Rust Programming Language910Entry point for Rust development. Provides an overview and routes to focused skills.1112## Available Skills1314This plugin provides focused skills for specific Rust topics:1516- **rust:ownership** - Ownership rules, borrowing, slices, lifetimes17- **rust:error-handling** - Result, Option, ? operator, custom error types18- **rust:anti-patterns** - Anti-patterns and clippy anti-idioms to hunt and fix19- **rust:async** - Async functions, tokio, streams, threads, channels, shared state20- **rust:testing** - Unit tests, integration tests, cargo test, Cargo.toml, commands21- **rust:troubleshooting** - Best practices, common patterns, idiomatic Rust22- **rust:cli** - Argument parsing with clap, CLI output and progress, exit codes, testing CLI binaries2324For core language features (traits, generics, collections, pattern matching), see `references/language.md`.2526## Quick Start2728```bash29# Install via mise30mise use rust@latest3132# Create a new project33cargo new myproject34cd myproject3536# Build and run37cargo run38```3940See `templates/mise.toml` for project task definitions.4142## Key Principles4344- **Ownership ensures memory safety**: no garbage collector needed45- **Borrow checker prevents data races**: compile-time safety46- **Zero-cost abstractions**: high-level code compiles to efficient machine code47- **Explicit over implicit**: be clear about ownership, mutability, errors48- **Prefer immutability**: use `mut` only when needed49- **Use the type system**: let the compiler catch errors50- **Test thoroughly**: tests are first-class in Rust51- **Use clippy**: catch common mistakes and non-idiomatic code5253## Anti-fabrication5455This skill follows `core:anti-fabrication`. Every claim about Rust language behavior, the56standard library, and tooling commands is verified against the official documentation cited57in `sources.md` — not inferred from generic familiarity with the language. Before asserting a58language feature, API signature, or command behavior this skill and its references do not59cover, check the installed Rust toolchain's documentation (`rustup doc`) or crates.io rather60than guessing.