| Crates.io | dilib-derive |
| lib.rs | dilib-derive |
| version | 0.2.0 |
| created_at | 2022-04-03 04:43:17.178448+00 |
| updated_at | 2022-04-27 00:52:54.526281+00 |
| description | Derive proc_macros for the dilib crate |
| homepage | https://crates.io/crates/dilib/ |
| repository | https://github.com/Neo-Ciber94/dilib-rs/ |
| max_upload_size | |
| id | 561185 |
| size | 28,043 |
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.