dilib-derive

Crates.iodilib-derive
lib.rsdilib-derive
version0.2.0
sourcesrc
created_at2022-04-03 04:43:17.178448
updated_at2022-04-27 00:52:54.526281
descriptionDerive proc_macros for the dilib crate
homepagehttps://crates.io/crates/dilib/
repositoryhttps://github.com/Neo-Ciber94/dilib-rs/
max_upload_size
id561185
size28,043
NeoCiber (Neo-Ciber94)

documentation

https://docs.rs/dilib/

README

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.

Commit count: 230

cargo fmt