[][src]Crate stable_eyre

This library provides a custom eyre::EyreContext type for usage with eyre that provides all the same features as eyre::DefaultContext except it works on stable by capturing a backtrace::Backtrace via backtrace-rs.

Example

use eyre::{eyre, WrapErr};
use stable_eyre::Report;

fn main() -> Result<(), Report> {
    let e: Report = eyre!("oh no this program is just bad!");

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

Structs

Context

A custom context type for capturing backtraces on stable with eyre

Type Definitions

Report

A type alias for eyre::Report<stable_eyre::Context>

Result

A type alias for Result<T, stable_eyre::Report>