errorstack 0.1.1

A derive-based typed error system with first-class error stack building.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use errorstack::ErrorStack;

#[derive(ErrorStack)]
enum AppError {
    Conflict {
        #[location]
        loc1: &'static std::panic::Location<'static>,
        #[location]
        loc2: &'static std::panic::Location<'static>,
    },
}

fn main() {}