ultimo 0.1.1

Modern Rust web framework with automatic TypeScript client generation
Documentation

Ultimo - Modern Rust Web Framework

Lightweight, type-safe Rust web framework with automatic TypeScript type generation.

Quick Start

use ultimo::prelude::*;

#[tokio::main]
async fn main() -> ultimo::Result<()> {
    let mut app = Ultimo::new();

    app.use_middleware(ultimo::middleware::builtin::logger());

    app.get("/", |ctx: Context| async move {
        ctx.json(serde_json::json!({"message": "Hello Ultimo!"})).await
    });

    app.get("/users/:id", |ctx: Context| async move {
        let id = ctx.req.param("id")?;
        ctx.json(serde_json::json!({"id": id})).await
    });

    app.listen("127.0.0.1:3000").await
}