Routing & HTTP
Typed handlers, extractors, middleware, validation, sessions, CSRF, and rate limiting. The compiler checks the wiring.
A full-stack framework for Rust
dust is a batteries-included web framework built on Axum and Tokio: routing, database, queues, mail, views, and realtime monitoring in one coherent stack. No Node.js, no build step, one binary.
curl -fsSL https://dustapp.dev/install.sh | sh
Linux · macOS · Windows via PowerShell · MIT licensed
The whole stack
The pieces a real application needs, built to work together and documented in full. Add a crate when you want one; the defaults are ready on the first run.
Typed handlers, extractors, middleware, validation, sessions, CSRF, and rate limiting. The compiler checks the wiring.
A query builder, migrations, models, and relations over SQLite, PostgreSQL, and MySQL, with one API across them.
Queues with retries, a scheduler, workflows, and a supervisor that keeps workers and cron alive.
Mailers and templates, plus notifications over mail, SMS, and Slack — queued when you want them to be.
A first-party dashboard over SSE for requests, CPU, memory, storage, alerts, and incidents.
MiniJinja templates and the io/ui component library. No bundler, no Node.js, no hydration step.
A closer look
Four layers, one language. Pick a layer to see the code you actually write.
Declare the route once. Extractors parse the path, query, body, and session into the types your handler asks for — a bad parameter is a 404, not a panic.
route! builds links from handlersfn web(route: &mut Router) {
route.get("/posts/{post}", posts::show);
}
pub async fn show(
Params(id): Params<u64>,
) -> dust::Result<View> {
let post = Post::find(id).await?.or_abort(404)?;
Ok(view("posts.show", data! { post => post }))
}
Models, migrations, and relations over SQLite, PostgreSQL, and MySQL. The same code runs on each; the driver is configuration.
let posts = Post::query()
.filter(Post::published_at.is_not_null())
.order_by(Post::published_at.desc())
.paginate(15)
.await?;
let post = Post::find(42).await?
.or_abort(404)?;
Dispatch a job and return. Retries, batches, second-level schedules, and durable workflows stay in the same application.
ProcessPodcast { podcast }.dispatch().await?;
#[schedule::tasks]
fn schedule(schedule: &mut Schedule) {
schedule.command("reports:generate")
.daily_at("08:00");
}
Dispatch an event once. Listeners send the mail and broadcast the update; Relay gives you a local WebSocket server and an Echo client.
#[derive(Event)]
#[event(broadcast(private = "orders.{order_id}"))]
pub struct OrderShipped {
pub order_id: i64,
pub tracking_number: String,
}
OrderShipped {
order_id: 42,
tracking_number: "TRACK-123".into(),
}
.dispatch()
.await?;
Included, not bolted on
A cron daemon, a typed pipeline engine, durable workflows, a supervisor, modules, media, search, and feature flags — all first-party.
Due commands run in their own processes. Every run records its exit code, output, CPU time, and peak memory.
Each stage receives the value and a Next continuation. Change it, pass it on, or stop early — then test every stage on its own.
Steps execute once and resume across sleeps, webhooks, and restarts.
Workers and cron restart in their own processes, with status and statistics.
Routes, migrations, views, and services in modules/, enabled per application.
Store, collect, and generate resized or cropped versions on any disk.
Post::search("rust") over a database index or an external engine.
Resolve a value per user or team once, store it, and roll it out without a deploy.
First-party module
Requests, latency, CPU, memory, storage, mail, queues, and incidents, streamed over SSE into one dashboard. Open it while the application runs.
Documentation
Every feature has a tutorial with runnable examples, from the first route to workflows in production.
Create an application and have routing, database, queues, mail, views, and monitoring ready on the first run.
curl -fsSL https://dustapp.dev/install.sh | sh