handling-rust-errors

Installation
SKILL.md

Rust Error-Stack Patterns

HASH-specific error handling patterns using the error-stack crate for consistent, debuggable error handling across the Rust codebase.

Core Principles

HASH uses error-stack exclusively for error handling:

DO:

  • Use Report<MyError> for all error types
  • Use concrete error types: Report<MyError>
  • Import Error from core::error:: (not std::error::)
  • Import ResultExt as _ for trait methods

DON'T:

Related skills
Installs
2
Repository
hashintel/hash
GitHub Stars
1.6K
First Seen
Mar 24, 2026