A full-stack framework for Rust

The whole stack.
One binary.

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

21framework crates
75written guides
3SQL drivers
0JavaScript build steps

The whole stack

Everything you reach for, already wired.

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.

Routing & HTTP

Typed handlers, extractors, middleware, validation, sessions, CSRF, and rate limiting. The compiler checks the wiring.

Database & models

A query builder, migrations, models, and relations over SQLite, PostgreSQL, and MySQL, with one API across them.

Background work

Queues with retries, a scheduler, workflows, and a supervisor that keeps workers and cron alive.

Mail & notifications

Mailers and templates, plus notifications over mail, SMS, and Slack — queued when you want them to be.

Realtime Pulse

A first-party dashboard over SSE for requests, CPU, memory, storage, alerts, and incidents.

Views & UI

MiniJinja templates and the io/ui component library. No bundler, no Node.js, no hydration step.

A closer look

Follow one request through the stack.

Four layers, one language. Pick a layer to see the code you actually write.

Typed URLs, typed responses.

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.

  • Path, query, and body extractors
  • Middleware, sessions, CSRF, rate limiting
  • route! builds links from handlers
src/routes/web.rs
fn 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 }))
}

Included, not bolted on

The services other stacks make you assemble.

A cron daemon, a typed pipeline engine, durable workflows, a supervisor, modules, media, search, and feature flags — all first-party.

cron dust-cron

A real daemon, down to the second.

Due commands run in their own processes. Every run records its exit code, output, CPU time, and peak memory.

pipeline dust::pipeline

Compose a flow, not a pyramid.

Each stage receives the value and a Next continuation. Change it, pass it on, or stop early — then test every stage on its own.

workflows

Runs that survive deploys.

Steps execute once and resume across sleeps, webhooks, and restarts.

supervisor

Programs stay up.

Workers and cron restart in their own processes, with status and statistics.

modules

Features with a boundary.

Routes, migrations, views, and services in modules/, enabled per application.

media

Files for your models.

Store, collect, and generate resized or cropped versions on any disk.

search

Search the models.

Post::search("rust") over a database index or an external engine.

flags

Ship gradually.

Resolve a value per user or team once, store it, and roll it out without a deploy.

First-party module

Pulse watches the application for you.

Requests, latency, CPU, memory, storage, mail, queues, and incidents, streamed over SSE into one dashboard. Open it while the application runs.

  • Live request sampling and route history
  • Percentiles, not averages
  • Alerts with incident history

Documentation

75 guides, written like a book.

Every feature has a tutorial with runnable examples, from the first route to workflows in production.

Browse all 75 guides

Leave the glue code in the dust.

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