v0.10.1 Now Available

The Rust Frameworkfor Speed, Security & Efficiency

Type-safe APIs for latency-sensitive systems — trading platforms, AI inference services, real-time data pipelines, and backend infrastructure where every millisecond counts.

Start Building
crates.io versionCI statuslicenseMSRVunsafe forbidden
server.rs
use ultimo::prelude::*;

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

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

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

Built For Systems Where Every Millisecond Counts

Ultimo is designed for backend workloads where speed, security, and efficiency are non-negotiable requirements.

Financial Services

Trading systems, risk engines, payment processing — where tail latency directly impacts revenue.

AI & ML Backends

Inference serving, model orchestration, and feature pipelines that need predictable response times.

Bot Execution

Trading bots, automation engines, and webhook processors that react to events in milliseconds.

Real-Time Systems

Live data feeds, notifications, and collaborative tools over WebSocket pub/sub channels.

Backend Infrastructure

API gateways, microservices, and data pipelines deployed as single static binaries.

Zero GC pauses100% safe RustSingle binary deployPredictable memory
AI-native

Built for you and your coding agent

Most software is now written with AI coding agents. Ultimo is designed to be the easiest Rust framework for them to build with — typed contracts, deterministic scaffolds, and docs made to be read by machines.

Typed codegen

Write your API once in Rust; the typed TypeScript client is generated from it. Agents never guess client types — they're derived.

Scaffolds that build

`ultimo new` produces projects that compile out of the box, with dependency pins that track the current release. No stale-version dead ends.

Docs agents can read

Machine-readable llms.txt docs and a Context7-indexed corpus keep agents grounded in the current API. Every scaffold ships an AGENTS.md ruleset.

MCP server

`ultimo mcp` gives your agent live tools: search the current docs, read examples, scaffold a project, and introspect your RPC API.

Uncompromising
Performance

Ultimo is a thin layer over Hyper and Tokio — the same core that powers the fastest Rust servers — so you get native speed with a higher-level developer experience. We measure what the framework itself costs and guard it in CI.

O(1) routing

Constant-time route lookup — 10 routes or 10,000, the same cost.

Built on Hyper + Tokio

The proven async HTTP core of the Rust ecosystem — no re-implementation.

Regression-guarded

Every framework change is benchmarked in CI — we don't get slower by accident.

Route lookup cost as the app grows

Relative to 10 routes. Our benchmark suite caught a linear scan in the router; static routes are now a hash-map lookup.

Route lookup time relative to a 10-route app, before and after the router fix
RoutesBefore (linear scan)Now (O(1))
10
1×
1×
100
3.6×
1×
500
15×
1×
How we measure, and how to reproduce it
Secure by default

Security is a
first-class pillar

Built in safe Rust with secure defaults across the stack — login, authorization, CSRF, rate limiting, hardened headers and supply-chain checks ship in the box, not as an afterthought.

Read the security guide →

What's built in

  • 100% safe Rust — #![forbid(unsafe_code)], zero unsafe in the framework
  • Secure-by-default sessions & cookies (HttpOnly/Secure/SameSite, 256-bit ids)
  • Sign in with Google, GitHub, Okta… (OAuth2 + OIDC with PKCE)
  • JWT (HS256 or OIDC/JWKS) and API-key auth, with scope-based authorization
  • CSRF protection (double-submit cookie, constant-time compare)
  • Security-headers middleware (HSTS, CSP, X-Frame-Options, …)
  • Rate limiting, IP allow/deny, request guards and geo-blocking
  • Request timeouts and body-size limits
  • Supply-chain CI — cargo-audit + cargo-deny on every change

End-to-End Type Safety

Define your API in Rust. Get TypeScript clients automatically. Catch errors at compile time, not runtime.

backend/src/main.rs
Rust
#[derive(Serialize, TS)]
struct User {
    id: u32,
    name: String,
    email: String,
}

rpc.query("getUser", |id: u32| async move {
    // load the user…
});
frontend/src/client.ts
Generated
export type User = {
    id: number,
    name: string,
    email: string,
};

// user: User
const user = await client.getUser(1);
console.log(user.name);

How Ultimo Compares

Axum, Actix, and friends are excellent, minimal HTTP layers. Ultimo builds on the same Rust core and adds the full-stack pieces — typed clients, RPC, auth — so you ship features instead of wiring boilerplate.

Ultimo

TypeScript Types
Auto
OpenAPI Generation
Auto
JSON-RPC Support
REST Support
Request Validation
Authentication
Client Generation
Auto
CORS
Rate Limiting
WebSocket Pub/Sub
Sessions & CSRF
Hot-Reload Dev Server

Axum

TypeScript Types
Manual
OpenAPI Generation
Manual
JSON-RPC Support
REST Support
Request Validation
Manual
Authentication
Manual
Client Generation
Manual
CORS
Manual
Rate Limiting
Manual
WebSocket Pub/Sub
Manual
Sessions & CSRF
Manual
Hot-Reload Dev Server

Actix Web

TypeScript Types
Manual
OpenAPI Generation
Manual
JSON-RPC Support
REST Support
Request Validation
Manual
Authentication
Manual
Client Generation
Manual
CORS
Manual
Rate Limiting
Manual
WebSocket Pub/Sub
Manual
Sessions & CSRF
Manual
Hot-Reload Dev Server

Rocket

TypeScript Types
Manual
OpenAPI Generation
Manual
JSON-RPC Support
REST Support
Request Validation
Authentication
Manual
Client Generation
Manual
CORS
Manual
Rate Limiting
Manual
WebSocket Pub/Sub
Manual
Sessions & CSRF
Manual
Hot-Reload Dev Server

Warp

TypeScript Types
Manual
OpenAPI Generation
Manual
JSON-RPC Support
REST Support
Request Validation
Manual
Authentication
Manual
Client Generation
Manual
CORS
Manual
Rate Limiting
Manual
WebSocket Pub/Sub
Manual
Sessions & CSRF
Manual
Hot-Reload Dev Server

Built-in   Requires manual setup/crates   Not available

Ready to build your next high-performance backend?

572 developers have starred Ultimo on GitHub. Start with the docs and have an API running in minutes.