ferrunix 0.5.2

A lightweight run-time dependency injection framework for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#![allow(dead_code)]
use ferrunix::Inject;

#[derive(Inject)]
#[provides(singleton)]
pub struct ServerConfig {}

#[derive(Inject)]
#[provides(singleton)]
pub struct ServerConfig1 {
    #[inject(default)]
    pub hostname: String,
}