4 releases

0.2.1-alpha Apr 16, 2022
0.2.0 Apr 27, 2022
0.2.0-alpha Apr 15, 2022
0.1.0-alpha Apr 3, 2022

#40 in #singleton

34 downloads per month
Used in dilib

Custom license

29KB
620 lines

Dilib derive

Provides the #[derive(Inject)] attribute to implement the Inject trait.

Usage

use dilib::{Inject, Singleton};

struct User(String);

#[derive(Inject)]
struct UserService {
    db: Singleton<Vec<User>>,
}

License

This project is licensed under the MIT license.

Dependencies

~1.5MB
~36K SLoC