fnroute
fnroute is a small function router with axum-style handler extraction.
It is not an HTTP framework. It is a general-purpose route dispatcher that can register async and sync functions with different parameter lists, then extract those parameters from a route context.
fnroute is zero-dependency and supports no_std with alloc.
use ;
async
# async
Core Idea
Router<R, S>stores routes and fixes the final return typeR.FromRoute<S>lets each parameter type extract itself fromRouteContext.route(...)registers async handlers.route_sync(...)registers sync handlers.
Handler implementations are generated up to 16 parameters.