desert_framework 0.1.3

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

use axum::routing::MethodRouter;

pub struct RouteEntry {
    pub controller_type_id: TypeId,
    pub path: &'static str,
    pub method: u8,
    pub make_route: fn(Arc<dyn Any + Send + Sync>) -> MethodRouter,
}

inventory::collect!(RouteEntry);