handling-rust-errors
CommunityUnify Rust error handling with error-stack.
AuthoraRustyDev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
HASH error handling patterns in Rust enable a consistent, testable approach to create, propagate, and document errors across a codebase using the error-stack crate and derive_more.
Core Features & Use Cases
- Define error types with derive_more and implement the Error trait for consistent formatting
- Propagate errors with change_context, attach, and ResultExt across sync and async boundaries
- Document error variants and usage with intra-doc links and examples
- Apply HASH patterns in real projects to improve debuggability and maintainability
Quick Start
Define a small error enum using derive_more and implement the Error trait. In a sample function, wrap an upstream error with change_context and augment it with attach for extra context.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: handling-rust-errors Download link: https://github.com/aRustyDev/git-atomic/archive/main.zip#handling-rust-errors 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.