rust

Installation
SKILL.md

Rust

Overview

Rust is a systems programming language focused on safety, concurrency, and performance. The ownership system guarantees memory safety without garbage collection, and the type system enforces thread safety at compile time.

When to use: Systems programming, web services (axum), CLI tools (clap), terminal UIs (ratatui), WebAssembly, performance-critical applications, anything requiring memory safety without runtime overhead.

When NOT to use: Rapid prototyping where compile times matter more than safety, simple scripting tasks, projects where the team has no Rust experience and deadlines are tight.

Quick Reference

Pattern API / Tool Key Points
Ownership transfer let b = a; a is moved, no longer usable
Borrowing &T / &mut T One mutable OR many immutable refs
Lifetime annotation fn f<'a>(x: &'a str) -> &'a str Ties output lifetime to input
Error propagation ? operator Converts and propagates errors
Custom errors thiserror::Error derive Structured error types with Display
Related skills
Installs
46
GitHub Stars
11
First Seen
Feb 23, 2026