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.
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.
Everything you need to ship
The pieces a production API needs are built in. Each one is an opt-in Cargo feature, so you only compile what you use.
REST and JSON-RPC
Both in one app, with batch requests and notifications.
Real-time
WebSockets with built-in pub/sub, plus SSE and streaming.
OpenAPI
Specs generated from your code, Swagger UI at /docs.
Validation
Typed extractors that reject bad input before your handler runs.
Caching and Redis
Response caching, shared sessions and rate limits across instances.
Observability
Prometheus metrics and OpenTelemetry tracing, one line each.
Databases
SQLx and Diesel for PostgreSQL, MySQL and SQLite.
CLI
Scaffold, hot-reload and build with ultimo new, dev and build.
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.
| Routes | Before (linear scan) | Now (O(1)) |
|---|---|---|
| 10 | 1× | 1× |
| 100 | 3.6× | 1× |
| 500 | 15× | 1× |
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.
#[derive(Serialize, TS)]
struct User {
id: u32,
name: String,
email: String,
}
rpc.query("getUser", |id: u32| async move {
// load the user…
});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.
| Feature | Ultimo | Axum | Actix Web | Rocket | Warp |
|---|---|---|---|---|---|
| TypeScript Types | Auto | Manual | Manual | Manual | Manual |
| OpenAPI Generation | Auto | Manual | Manual | Manual | Manual |
| JSON-RPC Support | |||||
| REST Support | |||||
| Request Validation | Manual | Manual | Manual | ||
| Authentication | Manual | Manual | Manual | Manual | |
| Client Generation | Auto | Manual | Manual | Manual | Manual |
| CORS | Manual | Manual | Manual | Manual | |
| Rate Limiting | Manual | Manual | Manual | Manual | |
| WebSocket Pub/Sub | Manual | Manual | Manual | Manual | |
| Sessions & CSRF | Manual | Manual | Manual | Manual | |
| Hot-Reload Dev Server |
Ultimo
Axum
Actix Web
Rocket
Warp
Built-in Requires manual setup/crates Not available
Latest from the Blog
Tutorials, release notes, and deep dives into the Ultimo framework.
Ultimo 0.9.11: Request Guards, ultimo build and WebSocket Compression
Ultimo 0.9.11 adds request guards and geo-blocking, a real one-command production build in the CLI, and permessage-deflate WebSocket compression that cut JSON traffic by 63% in our measurements.
What's New in Ultimo: Everything From 0.7 to 0.9
Typed extractors, OIDC tokens, streaming and Server-Sent Events, graceful shutdown, Prometheus metrics, OpenTelemetry tracing, Redis, "Sign in with Google" and response caching — a tour of thirteen Ultimo releases, with upgrade notes.
Add "Sign in with Google" and GitHub Login to a Rust Web App
A step-by-step guide to OAuth2 and OpenID Connect login in Rust with Ultimo: register the app, add two routes, read the signed-in user, link users to your own database, and get the security details right.
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.