Rust Patterns

Community

Master Rust coding conventions.

AuthorFrancisVarga
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides clear guidelines and best practices for writing idiomatic and maintainable Rust code within the stupid-db project, ensuring consistency and quality across the codebase.

Core Features & Use Cases

  • Error Handling: Standardizes the use of thiserror for libraries and anyhow for binaries.
  • Async Patterns: Demonstrates effective use of tokio for I/O-bound and rayon for CPU-bound tasks, with spawn_blocking for bridging.
  • Trait Design: Illustrates patterns for pluggable backends and compute tasks.
  • Logging: Enforces structured logging with tracing.
  • Module Organization: Provides a clear structure for Rust crates.
  • Testing: Outlines best practices for writing unit and integration tests.

Quick Start

Consult the Rust Patterns skill for guidance on implementing robust error handling in your new Rust module.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Rust Patterns
Download link: https://github.com/FrancisVarga/stupid-db/archive/main.zip#rust-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.