Skip to main content

Module server

Module server 

Source
Available on crate feature serve only.
Expand description

axum router assembly and the bind / graceful-shutdown serve loop.

Functionsยง

build_router
Build the full router: unauthenticated probes + the bearer-guarded /v1 API.
serve
Boot the server: install observability, build state + router, bind, serve until SIGTERM/SIGINT, then drain in-flight runs up to the grace window.