Crates.io | dilib-derive |
lib.rs | dilib-derive |
version | 0.2.0 |
source | src |
created_at | 2022-04-03 04:43:17.178448 |
updated_at | 2022-04-27 00:52:54.526281 |
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.