desert_framework 0.1.1

Micro-framework for building backend applications in Rust with Axum
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::{sync::Arc, vec};

use crate::{dependency::Deps, manager::DependencyManager};

pub trait Service {
    fn new(manager: Arc<DependencyManager>) -> impl std::future::Future<Output = Self> + Send
    where
        Self: Sized;

    fn deps() -> Deps {
        vec![]
    }

    fn name() -> String;
}