GlideAPI
Ergonomic Rust web framework — FastAPI-style DX, Actix-level performance.
use ;
use Json;
use Serialize;
async
async
Features
#[get]/#[post]/#[put]/#[delete]— decorator-style routing.mount_routes()— zero-boilerplate auto-registrationState<T>— typed dependency injection, noArc<Mutex>noise- Unified
Result<T>— noBox<dyn Error> - Middleware — composable
async fn(req, next)chain - Auto OpenAPI 3.0 at
/_openapi.json - Swagger UI at
/_docs - Request ID (
x-request-id) on every response - Body size limit (default 1 MB)
- Request timeout (default 30s)
- Graceful shutdown on
Ctrl+C/SIGTERM - Structured logging via
tracing
Install
[]
= "0.1"
= { = "1", = ["full"] }
= { = "1", = ["derive"] }
License
MIT