wonderbox 0.1.0

A minimalistic IoC library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use wonderbox::resolve_dependencies;

#[derive(Debug, Default)]
struct Foo;

#[resolve_dependencies]
impl Foo {
    fn new() -> Self {
        Foo::default()
    }
}

#[test]
fn test() {
    let _foo = Foo::new();
}