hosting 0.1.0

Dependency injection and application hosting modeled on Microsoft.Extensions.Hosting
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use hosting::Service;

#[derive(Service)]
#[service(constructor = new, constructor = open)]
struct Database;

impl Database {
    fn new() -> Self {
        Database
    }

    fn open() -> Self {
        Database
    }
}

fn main() {}