It might be nice to have a prelude module that contains the macros, Report, and WrapErr. This way use eyre::prelude::*; will be equivalent to
use eyre::{bail, ensure, eyre, Report, WrapErr};
as those are the items I typically want to import everywhere I use eyre (more specifically I only import the macros I use so I don't get warnings, but that the means the other macros aren't available when I want them).
Notably this should not include Result, as taking over the bare Result identifier without explicitly importing it would be surprising.
It might be nice to have a
prelude
module that contains the macros,Report
, andWrapErr
. This wayuse eyre::prelude::*;
will be equivalent toas those are the items I typically want to import everywhere I use eyre (more specifically I only import the macros I use so I don't get warnings, but that the means the other macros aren't available when I want them).
Notably this should not include
Result
, as taking over the bareResult
identifier without explicitly importing it would be surprising.