Expand description
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)]— GeneratesStackErrorimpl andFrom<T> for BoxedStackError(whenallocenabled). Finds location field via#[stack(location)]marker orLocationtype.#[report]— Transformsfn() -> Result<(), E>intofn() -> StackReport<E>for formatted error output on failure (stdonly).
Attribute Macros§
- report
- Transforms
fn() -> Result<(), E>intofn() -> StackReport<E>. - suzunari_
error - The main entry point for defining error types.
Derive Macros§
- Stack
Error - Derives the
StackErrortrait for a struct or enum.