Skillshub rust

Community Rust Best Practices

install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/pproenca/dot-skills/rust" ~/.claude/skills/comeonoliver-skillshub-rust && rm -rf "$T"
manifest: skills/pproenca/dot-skills/rust/SKILL.md
source content

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 AllocationCRITICAL
mem-
2Ownership & BorrowingCRITICAL
own-
3Data Structure SelectionHIGH
ds-
4Iterator & Collection PatternsHIGH
iter-
5Async & ConcurrencyMEDIUM-HIGH
async-
6Algorithm ComplexityMEDIUM
algo-
7Compile-Time OptimizationMEDIUM
comp-
8Micro-optimizationsLOW
micro-

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