rioc 0.2.11

Zero cost dependency injection macros
Documentation
use rioc::injectable;

#[injectable]
#[derive(Debug, PartialEq)]
pub struct StructWithoutDeps;

#[injectable]
#[derive(Debug, PartialEq)]
pub struct StructWithNamedDeps {
    pub dep: StructWithoutDeps,
}

#[injectable]
#[derive(Debug, PartialEq)]
pub struct StructWithUnnamedDeps(pub StructWithoutDeps);

#[injectable]
#[derive(Debug, PartialEq)]
pub struct StructWithNamedGenericDeps<T> {
    pub dep: T,
}

#[injectable]
#[derive(Debug, PartialEq)]
pub struct StructWithUnnamedGenericDeps<T>(pub T);

#[injectable]
#[derive(Debug, PartialEq)]
pub struct StructWithNamedDepAndLifetime<'a> {
    pub dep: &'a StructWithoutDeps,
}

#[injectable]
#[derive(Debug, PartialEq)]
pub struct StructWithUnnamedDepAndLifetime<'a>(pub &'a StructWithoutDeps);