How saltyfishie98/my-error-rs works
This small Rust library provides stacked-error formatting through a runtime trait and an attribute procedural macro. A consumer annotates an error enum; the macro generates the trait implementation and a Debug formatter. Runtime helpers then render the internal error chain as full debug output, collect source locations, or produce a terse user-facing message. The README is empty, so the usage flow is based on the source example and implementation; no broader integrations are evidenced.
Main entry points: src/lib.rs StackError trait · src/lib.rs Stack trace macro
Components 7
Other components
- Library consumer
- Stack trace macro
stack_trace_debug/src/lib.rs - StackError trait
src/lib.rs - Debug formatting
stack_trace_debug/src/lib.rs - Full stack output
src/lib.rs - Location collection
src/lib.rs - User-facing output
src/lib.rs
Connections 6
- Library consumer → Stack trace macro: annotates enum
stack_trace_debug/src/lib.rs - Stack trace macro → StackError trait: generates implementation
stack_trace_debug/src/lib.rs - Stack trace macro → Debug formatting: generates Debug
stack_trace_debug/src/lib.rs - Full stack output → StackError trait: calls debug_fmt
src/lib.rs - Location collection → StackError trait: walks chain
src/lib.rs - User-facing output → StackError trait: walks chain
src/lib.rs