Skip to main content

Crate oopsie_macros

Crate oopsie_macros 

Source
Expand description

Procedural macros backing the oopsie error-handling crate.

This crate provides the #[oopsie] attribute — the canonical way to define an error type — and the underlying Oopsie derive. Both generate context selectors plus Display and Error impls; the attribute additionally derives Debug and can inject diagnostic fields such as backtraces, span traces, timestamps, and caller locations.

Depend on the oopsie facade rather than this crate directly; the macros are re-exported from there alongside the runtime they expand against.

Attribute Macros§

oopsie
Attribute macro — the primary way to define an oopsie error type.

Derive Macros§

Oopsie
Derive macro that generates context selectors, Display, and Error impls for a struct or enum.