plugctx-derive 0.1.3

Optional proc-macro helpers for the plugctx plugin framework (FR27)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use plugctx_derive::Plugin;

#[derive(Plugin)]
#[plugin(inject(Foo))]
struct BadAttr;

impl BadAttr {
    fn on_build(&self, _ctx: &mut plugctx::Context) -> Result<(), plugctx::Error> {
        Ok(())
    }
}

fn main() {}