suzunari-error-macro-impl 0.2.0

Proc-macro internals for suzunari-error — not intended for direct use
Documentation

Procedural macros for suzunari-error.

Provides 3 proc-macros:

  • #[suzunari_error] — The main entry point. Processes #[suzu(...)] attributes, resolves/injects location fields, and appends #[derive(Debug, Snafu, StackError)].
  • #[derive(StackError)] — Generates StackError impl and From<T> for BoxedStackError (when alloc enabled). Finds location field via #[stack(location)] marker or Location type.
  • #[report] — Transforms fn() -> Result<(), E> into fn() -> StackReport<E> for formatted error output on failure (std only).