Expand description

Traits and macros used by most projects. Add use snafu::prelude::* to your code to quickly get started with SNAFU.

Re-exports

pub use crate::ensure;
pub use crate::OptionExt as _;
pub use crate::ResultExt as _;
pub use crate::whatever;

Derive Macros

The Snafu macro is the entrypoint to defining your own error types. It is designed to require little configuration for the recommended and typical usecases while still offering flexibility for unique situations.