Rust Patterns
CommunityMaster Rust coding conventions.
Software Engineering#testing#best practices#error handling#logging#coding standards#rust#async programming
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
thiserrorfor libraries andanyhowfor binaries. - Async Patterns: Demonstrates effective use of
tokiofor I/O-bound andrayonfor CPU-bound tasks, withspawn_blockingfor 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 requiredComponents
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.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.