rust-error-handling

Installation
SKILL.md

Rust Error Handling

Comprehensive guide based on The Rust Programming Language Ch. 9, Effective Rust Item 4, and Rust by Example.

When to Use This Skill

  • Choosing between panic!, Result, and Option
  • Designing custom error types for a library or application
  • Composing multiple error types with ?
  • Deciding between thiserror (libraries) and anyhow (applications)
  • Converting errors with From/Into
  • Wrapping context around errors

Decision Tree

Installs
6
GitHub Stars
4
First Seen
Jun 9, 2026