rust-pro
Installation
SKILL.md
Rust Pro — Rust 1.75+ Systems Mastery
Mandatory Pre-Flight Context Inspection
Before writing Rust code or Axum handlers, you MUST inspect:
- Zero
.unwrap()in Production → Use the?operator and typedResult<T, E>; use.expect("invariant: explanation")only if mathematically unreachable - Standard Library
std::sync::LazyLock→ Use nativeLazyLock(Rust 1.80+); ban externallazy_staticoronce_celldependencies - Axum 0.7+ Route Parameters → Use
{id}bracket syntax for path parameters (/users/{id}); ban legacy:idsyntax - Tokio Cancellation Safety → Ensure
tokio::select!branches do not hold partially-completed state across cancellation points
Activation Boundaries
- Activate when: Writing systems-level Rust, Tokio async services, Axum web backends, WebAssembly modules, and performance-critical native CLI engines.
- DO NOT activate when: Writing frontend HTML/CSS, or rapid Python/Node.js glue scripts.