Rust Error Handling Strategy
Optimizes Rust codebases by implementing robust error handling patterns and architectural decision-making frameworks.
This skill provides a meta-problem-driven knowledge index that enables Claude to navigate complex Rust error handling scenarios. It helps distinguish between expected failures and bugs, guiding the implementation of Result, Option, and panic strategies. By applying this skill, developers ensure their Rust projects follow ecosystem best practices, such as utilizing thiserror for libraries and anyhow for applications, while maintaining clear error propagation and contextual debugging information.
주요 기능
01Systematic error propagation patterns using the '?' operator and context injection
02Decision flowcharts for choosing between Result, Option, and panic!
03596 GitHub stars
04Anti-pattern identification for unwrap, expect, and silent error ignoring
05Context-aware crate selection (thiserror vs. anyhow) based on project scope
06Domain-specific error design guidance for production-grade reliability
사용 사례
01Standardizing error context and logging across large-scale Rust applications
02Refactoring code to replace dangerous .unwrap() calls with safe error propagation
03Designing custom error types for new Rust libraries using thiserror