Expand description
This library provides a custom eyre::EyreHandler
type for usage with eyre
that provides
a minimal error report with no additional context. Essentially the minimal implementation of an
error reporter.
§Setup
Add the following to your toml file:
[dependencies]
oneline-eyre = "0.3"
Then install the hook handler before constructing any eyre::Report
types.
§Example
ⓘ
use oneline_eyre::eyre::{eyre, WrapErr, Report};
fn main() -> Result<(), Report> {
oneline_eyre::install()?;
let e: Report = eyre!("oh no this program is just bad!");
Err(e).wrap_err("usage example successfully experienced a failure")
}
Re-exports§
pub use eyre;
Structs§
- Handler
- A custom context type for minimal error reporting via
eyre
Functions§
- install
- Install the
oneline-eyre
hook as the global error report hook, using:
`s a separator. - install_
custom - Install the
oneline-eyre
hook as the global error report hook, using the provided separator.