thisctx 0.4.0

Easily create error with contexts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use thisctx::WithContext;

#[derive(WithContext)]
#[thisctx(skip)]
enum Error {
    #[thisctx(no_skip)]
    GenerateContext,
    NotGenerateContext,
}

#[test]
fn attr_skip() {
    let _ = GenerateContext;
    let _ = Error::NotGenerateContext;
}