stable-eyre 0.2.2

A custom context for eyre that supports capturing Backtraces on stable
Documentation
1
2
3
4
5
6
7
8
9
use stable_eyre::eyre::{eyre, Report, WrapErr};

fn main() -> Result<(), Report> {
    stable_eyre::install()?;

    let e: Report = eyre!("oh no this program is just bad!");

    Err(e).wrap_err("usage example successfully experienced a failure")
}