> rust

Rust performance optimization guidelines. This skill should be used when writing, reviewing, or refactoring Rust code to ensure optimal performance patterns. Triggers on tasks involving memory allocation, ownership, borrowing, iterators, async code, or performance optimization.

fetch
$curl "https://skillshub.wtf/pproenca/dot-skills/rust?format=md"
SKILL.mdrust

Community Rust Best Practices

Comprehensive performance optimization guide for Rust applications. Contains 42 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.

When to Apply

Reference these guidelines when:

  • Writing new Rust code
  • Optimizing memory allocation and ownership patterns
  • Working with iterators and collections
  • Writing async code with Tokio or other runtimes
  • Reviewing code for performance issues

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Memory AllocationCRITICALmem-
2Ownership & BorrowingCRITICALown-
3Data Structure SelectionHIGHds-
4Iterator & Collection PatternsHIGHiter-
5Async & ConcurrencyMEDIUM-HIGHasync-
6Algorithm ComplexityMEDIUMalgo-
7Compile-Time OptimizationMEDIUMcomp-
8Micro-optimizationsLOWmicro-

Quick Reference

1. Memory Allocation (CRITICAL)

2. Ownership & Borrowing (CRITICAL)

3. Data Structure Selection (HIGH)

4. Iterator & Collection Patterns (HIGH)

5. Async & Concurrency (MEDIUM-HIGH)

6. Algorithm Complexity (MEDIUM)

7. Compile-Time Optimization (MEDIUM)

8. Micro-optimizations (LOW)

How to Use

Read individual reference files for detailed explanations and code examples:

Full Compiled Document

For a comprehensive guide with all rules in a single document, see AGENTS.md.

Reference Files

FileDescription
AGENTS.mdComplete compiled guide with all rules
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information

┌ stats

installs/wk0
░░░░░░░░░░
github stars80
██████████
first seenMar 17, 2026
└────────────

┌ repo

pproenca/dot-skills
by pproenca
└────────────

┌ tags

└────────────