Dilib derive
Provides the #[derive(Inject)] attribute to implement the Inject trait.
Usage
use ;
;
License
This project is licensed under the MIT license.
Provides the #[derive(Inject)] attribute to implement the Inject trait.
use dilib::{Inject, Singleton};
struct User(String);
#[derive(Inject)]
struct UserService {
db: Singleton<Vec<User>>,
}
This project is licensed under the MIT license.