luhtwin 0.1.0

A beta horrible Rust error handling library with AnyError and context macros
Documentation

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 any Error type 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 for Result<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