luhtwin
Horrible Error Handling for Rust
luhtwin provides a horrible, non-ergonomic error handling system that emphasizes context accumulation, structured diagnostics, and flexible formatting. Built around the AnyError type, it allows you to wrap any error with rich metadata and progressively add context as errors bubble up through your application.
Core Ideas
- [
AnyError] — The main error container that wraps anyErrortype with context chains - [
ErrorContext] — Structured metadata including messages, file/line info, docs, and severity - [
Wrap] — Wrapping existing Results into LuhTwin. - [
Twin] — Transforming existing Results into LuhTwin. - [
Encase] — Encase existing LuhTwins in another layer of context. - [
LuhTwin<T>] — Type alias forResult<T, AnyError>, the primary result type
docs are ass rn but we finna get to it lmaoo still in development heavily <3333 made with love - s.c