portaldi 0.6.3

An ergonomic lightweight compile-time depencency injection library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::common::*;

#[test]
fn test_di() {}

pub struct foo;

#[derive(DIPortal)]
struct Hoge {
    foo: DI<Foo>, // unit struct と 同じフィールド名だと コンパイルエラーになっていたのを修正
}

#[derive(DIPortal)]
struct Foo {}