Ask "which Rust web framework should I use" in any forum and you will get three answers in the first five replies, each delivered with total confidence. Axum because everyone uses it. Actix because it tops the benchmarks. Rocket because it is the nicest to write. All three answers are defensible, which is the problem. They are answering different questions.
I needed to answer it properly for this site, because we just started a series called Rust for web developers and it has to commit to one framework for the back half. So instead of picking the popular one and moving on, I built the same small JSON endpoint in each of the main server frameworks, compiled them all with the same toolchain on the same machine, measured what I could measure, read through their docs and release histories, and wrote down where each one fits.
Here is what this post covers:
- What a Rust web framework actually does, and what all of them share underneath.
- The server frameworks: Axum, Actix Web, Rocket, Poem and Salvo, each with the same endpoint in code.
- The batteries-included option, Loco, and the full-stack UI frameworks, Leptos and Dioxus, which solve a different problem.
- Numbers: build time, binary size, dependency count, idle memory and throughput, with honest caveats.
- The ways Rust shows up in web work, from a full backend to a WebAssembly module in a React app.
- Where to host a Rust web app, with a Dockerfile I actually built.
- Which one I'd pick, for which situation.
All versions are the latest stable releases on crates.io as of 30 November 2026, built with Rust 1.100.0 in the official rust:latest Docker image.
The short answer
If you want one line: use Axum unless you have a specific reason not to.
It has by far the largest share of the ecosystem, it's maintained by the same team as Tokio, it doesn't rely on macros for routing, and almost every tutorial, middleware crate and example you'll find in 2026 assumes it. It is not the fastest in every benchmark and it is not the most pleasant to write on day one. It is the one you're least likely to regret in two years.
The rest of this post is about the reasons you might pick something else.
What a Rust web framework does
It helps to know what is underneath, because it explains why the frameworks look more alike than their marketing suggests.
Almost every Rust web framework sits on the same stack:
- Tokio, the async runtime. It runs your async code on a pool of threads and handles the network sockets. Rust's
asynckeyword only describes work; a runtime has to execute it, and in web Rust that runtime is Tokio almost everywhere. - hyper, the HTTP implementation. It parses requests and writes responses for HTTP/1.1 and HTTP/2. Axum, Poem, Salvo, Rocket and others all use it. Actix Web is the notable exception, with its own HTTP implementation.
- serde, for turning JSON (and other formats) into Rust structs and back. Every framework uses it.
On top of that, a framework gives you routing, a way to pull typed data out of requests (path parameters, query strings, JSON bodies, headers), a way to share state like a database pool, middleware, and error handling.
The biggest design difference between them is how handlers get their inputs. Some use extractors, where the function's parameter types declare what it needs and the framework fills them in. Some pass you the raw request and response objects. Some use macros on the function to generate the wiring. You'll see all three below.
If you're coming from Node.js, a rough map is that hyper is Node's http module, Tokio is the event loop (but multi-threaded), and the frameworks are Express, Fastify and Hono.
The test endpoint
To compare like with like, each server framework implements one route, GET /hello/{name}, returning:
{"message":"hello, world"}
It's tiny on purpose. It exercises routing, a path parameter, a struct serialised to JSON, and the server setup, which is enough to show each framework's style without burying it in business logic.
Axum
Axum is built by the Tokio team. Its idea is to be a thin, ergonomic layer over hyper and Tower, the middleware library that most of the async Rust ecosystem shares. Version 0.8.9 is the current stable release, and its recent download count on crates.io is roughly thirteen times that of Actix Web, the next most popular.
use axum::{Json, Router, extract::Path, routing::get};
use serde::Serialize;
#[derive(Serialize)]
struct Greeting {
message: String,
}
async fn hello(Path(name): Path<String>) -> Json<Greeting> {
Json(Greeting { message: format!("hello, {name}") })
}
#[tokio::main]
async fn main() {
let app = Router::new().route("/hello/{name}", get(hello));
let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap();
axum::serve(listener, app).await.unwrap();
}
Handlers are plain async functions. There's no macro on hello. The parameter Path(name): Path<String> is an extractor: Axum sees the type, pulls the {name} segment out of the URL, and passes it in. If you add Json<CreateUser> as a parameter, Axum parses the body as JSON. If you add State<AppState>, you get shared state. The return type tells Axum how to build the response.
What I like about Axum is that everything is ordinary Rust. The router is a value you can build in functions, test without a network, and nest. Middleware is Tower middleware, so tower-http gives you compression, CORS, tracing, timeouts and request IDs that also work with other Tower-based libraries, such as the gRPC library Tonic. When you outgrow the basics, nothing in Axum is magic.
The rough edge is error messages. Because handlers are checked through traits, a mistake in a handler signature, like an extractor in the wrong position or a non-Send type held across an .await, produces a trait-bound error that points at the route call rather than at the handler. The fix is the #[debug_handler] attribute from axum-macros, which you put on a handler while debugging to get an error pointing at the real problem. Every Axum beginner should learn that attribute on day one.
Axum is also still on 0.x. Breaking changes between minor versions happen, the 0.7 to 0.8 move changed path syntax from /:name to /{name}, for example. In practice the upgrades have been well documented and mechanical.
Pick Axum when you want the default choice with the biggest ecosystem, when you're building an API that will grow, or when you want to share middleware with other Tower-based services.
Actix Web
Actix Web is the other heavyweight. It reached 1.0 in 2019, it's on 4.20.0 now with a release this month, and it has a long history of sitting at or near the top of the TechEmpower benchmarks.
use actix_web::{App, HttpServer, Responder, get, web};
use serde::Serialize;
#[derive(Serialize)]
struct Greeting {
message: String,
}
#[get("/hello/{name}")]
async fn hello(name: web::Path<String>) -> impl Responder {
web::Json(Greeting { message: format!("hello, {name}") })
}
#[actix_web::main]
async fn main() -> std::io::Result<()> {
HttpServer::new(|| App::new().service(hello))
.bind(("0.0.0.0", 3000))?
.run()
.await
}
It looks similar to Axum: extractor-style parameters, JSON via serde. The differences are in the details. Routes are commonly declared with attribute macros like #[get("/hello/{name}")], though you can also register them without macros. And HttpServer::new takes a closure that builds an App, because Actix runs one copy of your app per worker thread.
That per-thread model is the interesting architectural choice. Actix still uses Tokio underneath, but each worker runs its own single-threaded runtime. A consequence is that your handlers don't need to be Send, which means you can use types like Rc and RefCell that Axum won't accept. It also means work isn't stolen between threads, which can help raw throughput but can leave a worker overloaded if requests vary a lot in cost.
Actix is a stable 4.x with a conservative upgrade policy, which some teams value more than anything else on this list. Its ecosystem is also large, though smaller than Axum's, and it has its own middleware system rather than Tower, so Tower middleware doesn't drop straight in.
If you've read about the 2020 drama, where the original author archived the project after a dispute over unsafe code, the short version is that the community took it over and it has been steadily maintained since. I wouldn't hold that history against it in 2026.
Pick Actix Web when you value a stable 4.x API, when you have an existing Actix codebase, or when raw throughput on a small number of hot endpoints is your main concern.
Rocket
Rocket is the framework that made Rust web development look friendly. Its focus is developer experience: typed routes through macros, request guards for authentication, built-in forms, templating, configuration and testing helpers.
#[macro_use]
extern crate rocket;
use rocket::serde::{Serialize, json::Json};
#[derive(Serialize)]
#[serde(crate = "rocket::serde")]
struct Greeting {
message: String,
}
#[get("/hello/<name>")]
fn hello(name: &str) -> Json<Greeting> {
Json(Greeting { message: format!("hello, {name}") })
}
#[launch]
fn rocket() -> _ {
let config = rocket::Config {
address: "0.0.0.0".parse().unwrap(),
port: 3000,
..rocket::Config::default()
};
rocket::custom(config).mount("/", routes![hello])
}
Notice how little ceremony there is. name: &str is just a borrowed string, matched to <name> in the route by its name. The handler isn't even async here, because it doesn't need to be. #[launch] generates main and the runtime setup. Out of the box, Rocket also reads config from Rocket.toml and environment variables, and prints a readable startup summary.
Request guards are Rocket's best idea. Any type that implements FromRequest can be a handler parameter, so fn dashboard(user: AdminUser) only runs if the request carries a valid admin session. Authorisation becomes part of the function signature, and the compiler won't let you forget it.
The concern with Rocket has always been pace. 0.5, the release that moved it to stable Rust and async, took years to arrive, and the project is largely driven by its original author. The current stable release is 0.5.4. A 0.6 release candidate appeared on crates.io in November 2026, which is a good sign, but the release history means I'd be careful about betting a company's main backend on it.
Pick Rocket for side projects, internal tools, and teaching, where its ergonomics shine and long-term ecosystem breadth matters less.
Poem
Poem is a smaller framework with one feature that sets it apart: poem-openapi, which generates an OpenAPI spec and Swagger UI directly from your Rust types and handler definitions.
use poem::{
Route, Server, get, handler,
listener::TcpListener,
web::{Json, Path},
};
use serde::Serialize;
#[derive(Serialize)]
struct Greeting {
message: String,
}
#[handler]
fn hello(Path(name): Path<String>) -> Json<Greeting> {
Json(Greeting { message: format!("hello, {name}") })
}
#[tokio::main]
async fn main() -> Result<(), std::io::Error> {
let app = Route::new().at("/hello/:name", get(hello));
Server::new(TcpListener::bind("0.0.0.0:3000")).run(app).await
}
It reads like Axum with a #[handler] macro and :name style path parameters. Poem's API is pleasant and its documentation is decent.
The concern is momentum. At the time of writing, the latest Poem release is 3.1.12 from July 2025, so it has gone well over a year without a new version, and its download numbers are a fraction of Axum's. That's not necessarily abandonment, as some mature libraries simply don't need frequent releases, but for a web framework that has to keep up with security fixes in its dependencies, I want to see regular activity. Axum now has good OpenAPI options too, notably utoipa and aide.
Pick Poem if you specifically want its OpenAPI-first workflow and you're comfortable with a smaller community.
Salvo
Salvo is the least known in the West of the frameworks here, with a large user base in China and a recent 1.0 milestone. Its pitch is a lot of built-in features: OpenAPI generation, automatic TLS certificates through ACME, HTTP/3, rate limiting, caching, CORS, sessions, and more, all as optional features of the main crate.
use salvo::prelude::*;
use serde::Serialize;
#[derive(Serialize)]
struct Greeting {
message: String,
}
#[handler]
async fn hello(req: &mut Request, res: &mut Response) {
let name = req.param::<String>("name").unwrap_or_default();
res.render(Json(Greeting { message: format!("hello, {name}") }));
}
#[tokio::main]
async fn main() {
let router = Router::with_path("hello/{name}").get(hello);
let acceptor = TcpListener::new("0.0.0.0:3000").bind().await;
Server::new(acceptor).serve(router).await;
}
The handler style is different from the others. Instead of declaring typed inputs, the handler receives mutable references to the request and response and works with them directly, closer to Express's (req, res). Salvo does also support extractor-style handlers, but this is its native shape. Routers are trees, and middleware is just another handler you attach to a branch of the tree, which is a neat model once it clicks.
The trade-offs are community size in English, which affects how easily you can find answers, and that its many built-in features tie you more closely to Salvo itself than Tower-based middleware does.
Pick Salvo if you want lots of features in one crate, like automatic HTTPS without a reverse proxy, and you're happy to read some docs and issues that were written for a Chinese-speaking audience first.
Loco: the Rails option
Loco is a different kind of project. It describes itself as "the one-person framework for Rust", and it is openly inspired by Ruby on Rails. It's built on Axum, so everything above about Axum's handlers and middleware still applies, but it adds the parts Axum leaves to you:
- Project generators, including
cargo loco generate scaffoldto create a model, migration, controller and views in one command. - An ORM (SeaORM) with migrations wired in.
- Authentication with users and JWTs out of the box.
- Background jobs, scheduled tasks, mailers, file storage and caching.
- Conventions for folder layout, configuration per environment, and testing.
If you've ever started an Axum project and spent the first two days choosing crates for config, logging, database access, migrations and auth, Loco is the answer to that. Version 1.4.0 was released the day I wrote this.
The trade-off is the usual framework trade-off. You get a lot of speed early by accepting Loco's opinions, and you need to understand Axum and SeaORM underneath when something doesn't fit them. I'd look at Loco after learning Axum, not instead of it, which is exactly how the series on this site is structured.
Leptos and Dioxus: Rust for the UI too
Leptos and Dioxus answer a different question. They're not backend frameworks; they're UI frameworks that let you write the frontend in Rust as well, compile it to WebAssembly for the browser, and run the same code on the server for server-side rendering.
Leptos (stable 0.8.23) uses fine-grained reactivity, much like SolidJS. Components run once, and signals update exactly the DOM nodes that depend on them, without a virtual DOM. Its standout feature is server functions: you write a Rust function marked #[server], call it from your component, and Leptos turns the call into an HTTP request to the server automatically, a lot like React Server Actions. Leptos integrates with Axum and Actix for its server side.
Dioxus (stable 0.7.10, with 0.8 in alpha) feels more like React: components, hooks, and an rsx! macro similar to JSX. Its big difference is reach. The same Dioxus app can target web, desktop and mobile, and its dx CLI handles building and hot reloading for each.
These are exciting projects, and if your whole team wants to live in Rust they're worth a serious look. For most web teams, though, the frontend already exists in React, Next.js, Vue or Svelte, and the realistic place for Rust is the backend or specific hot paths. Both frameworks are also pre-1.0 and their APIs still change between versions.
Side by side
| Axum | Actix Web | Rocket | Poem | Salvo | |
|---|---|---|---|---|---|
| Latest stable | 0.8.9 | 4.20.0 | 0.5.4 | 3.1.12 | 1.2.1 |
| Last release | Apr 2026 | Nov 2026 | Nov 2026 (0.6 rc) | Jul 2025 | Nov 2026 |
| Recent downloads (crates.io, 90 days) | 181.7M | 14.0M | 2.2M | 0.9M | 1.1M |
| HTTP layer | hyper | own (actix-http) | hyper | hyper | hyper |
| Runtime model | Tokio, work-stealing | Tokio, one runtime per worker thread | Tokio | Tokio | Tokio |
| Routing style | functions, no macros | attribute macros or functions | attribute macros | #[handler] + router |
#[handler] + router tree |
| Handler inputs | extractors | extractors | typed params, request guards | extractors | Request/Response, or extractors |
| Middleware | Tower | own | fairings | own | handlers in the tree |
| OpenAPI | utoipa or aide | utoipa or apistos | okapi | poem-openapi (built for it) | salvo-oapi (built in) |
| Best for | default choice, growing APIs | stable API, max throughput | side projects, teaching | OpenAPI-first APIs | many built-in features |
Recent downloads include downloads pulled in as dependencies of other crates, so they overstate direct use, especially for Axum, which many tools depend on. They're still a fair signal of where the ecosystem is.
What I measured
I measured the five server frameworks running the endpoint above, plus a plain Node.js 24 http server returning the same JSON as a familiar reference point. All of it ran in Docker on one Windows 11 machine with 16 logical CPUs, and every number below comes from those runs.
The setup, so you can judge it:
- Every project built with
cargo build --releaseon Rust 1.100.0, default features, one project at a time with 8 build jobs, starting from a cleantargetfolder but with crates already downloaded. - Each server ran alone in its own container limited to 4 CPUs.
- Load came from oha 1.17.0 in a second container, also limited to 4 CPUs, on the same Docker network: a 3 second warm-up, then 15 seconds at 64 concurrent connections.
- Memory is the container's usage reported by
docker stats, read once while idle and once right after the load run.
Build time, binary size and dependencies
| Framework | Release build | Binary size | Crates in dependency tree |
|---|---|---|---|
| Axum 0.8.9 | 21.6 s | 1.8 MB | 61 |
| Poem 3.1.12 | 31.9 s | 5.4 MB | 99 |
| Actix Web 4.20.0 | 63.0 s | 6.6 MB | 177 |
| Rocket 0.5.4 | 79.0 s | 5.4 MB | 143 |
| Salvo 1.2.1 | 98.3 s | 6.1 MB | 212 |
Axum is the lightest by a wide margin, because it does the least by default. Actix and Salvo enable more out of the box, including compression codecs in Actix's case, which you can turn off with default-features = false if you don't need them. Build time matters more than it sounds. Release builds are what CI runs and what your Docker image runs, and a framework that takes four times as long to compile costs you on every deploy. Incremental debug builds during development are much faster than these numbers for all five.
Memory
| Server | Idle | Right after load test |
|---|---|---|
| Axum | 0.8 MB | 2.7 MB |
| Actix Web | 1.4 MB | 2.6 MB |
| Rocket | 1.0 MB | 3.2 MB |
| Poem | 1.1 MB | 3.5 MB |
| Salvo | 1.1 MB | 3.6 MB |
Node.js 24 (http module) |
10.6 MB | 31.5 MB |
This is the number that changes hosting bills. Every Rust server idled at about one megabyte and stayed under four megabytes after handling well over a million requests. Plain Node.js, without any framework at all, started at ten times that and grew to around thirty. A real service on either side will use more once you add a database pool, logging and your own code, but the gap in the baseline carries through. On a 512 MB VPS or a serverless platform that bills per megabyte, that difference is the whole budget.
Throughput
| Server | Requests/sec | p50 latency | p99 latency | Errors |
|---|---|---|---|---|
| Actix Web | 95,446 | 0.56 ms | 2.44 ms | 0 |
| Poem | 94,196 | 0.62 ms | 1.88 ms | 0 |
| Axum | 93,385 | 0.62 ms | 2.24 ms | 0 |
| Salvo | 82,080 | 0.76 ms | 1.59 ms | 0 |
| Rocket | 69,364 | 0.90 ms | 1.87 ms | 0 |
Node.js 24 (http module) |
14,711 | 3.89 ms | 12.25 ms | 0 |
Please read this table carefully before quoting it.
The top three are a tie. The gaps between Actix, Poem and Axum are about two percent, which is within the noise of a single 15 second run on a desktop machine. With the load generator limited to the same 4 CPUs as the server, the load generator itself is likely close to its limit at these rates, so this test can't separate the fastest frameworks. Salvo and Rocket are measurably slower here, but still handle 70,000 to 80,000 requests a second on four cores.
The Node.js number is not a fair fight, and I'm including it as a reference, not a verdict. A single Node process uses one CPU core for JavaScript, while the Rust servers spread across all four. Run Node in cluster mode with four workers and it would close much of the gap in requests per second, at four times the memory. The latency and memory differences are the more meaningful part of that row.
The bigger point is that none of this matters for most apps. Your handler will query a database, call another service or render something, and that work will take milliseconds. Every framework here can do tens of thousands of simple requests a second on a few cores. Choose on ecosystem, ergonomics and maintenance, and treat raw speed as a tie-breaker.
How Rust fits into web work
Choosing a framework assumes you're writing a whole backend in Rust. That's one option, and it's not the only one, or even the most common way web teams start.
A full backend API
The obvious one. Your frontend stays in whatever it is (Next.js, a mobile app, a SPA), and your API is an Axum or Actix service talking to PostgreSQL. This is what the second half of our series builds. It makes the most sense when the API is the product, when it does real work per request, or when you're paying for compute and memory at scale.
A fast service next to your existing app
This is how most teams actually adopt Rust. The main app stays in Node.js, Python or Go, and one service that is slow, memory-hungry or CPU-bound is rewritten in Rust: image processing, a search index, a feed generator, a webhook ingester that has to absorb spikes, a pricing engine. It's a small, well-contained bet, and it's easy to measure whether it paid off.
WebAssembly in the browser
Rust compiles to WebAssembly well, and wasm-bindgen and wasm-pack let you call Rust functions from JavaScript as if they were an npm package. This is worth it for CPU-heavy work in the browser: image and video processing, parsing large files, compression, cryptography, physics, or running the same validation logic on the client and server. For DOM-heavy UI work, JavaScript is still the better tool unless you go all in with Leptos or Dioxus.
At the edge
Cloudflare Workers run Rust through WebAssembly using the worker crate (version 0.9.0 right now). You get Rust's speed with cold starts measured in milliseconds, and access to KV, D1, R2 and Durable Objects. The trade-off is that you're in a WebAssembly sandbox, not a normal server, so crates that need threads, the file system or raw sockets won't work, and you use Cloudflare's APIs for storage instead.
Serverless functions
On AWS Lambda, Rust has some of the fastest cold starts and lowest memory use of any runtime. cargo-lambda (1.9.2) builds and deploys functions, and the lambda_http crate can run an existing Axum router as a Lambda function, so the same code can run on a server or in Lambda. When you pay per millisecond and per megabyte, Rust's efficiency shows up directly on the bill.
Hosting a Rust web app
Hosting Rust is easier than people expect, because the output is a single native binary. There's no runtime to install, no node_modules to copy, and no interpreter version to match.
The Dockerfile
Most hosting options today accept a Docker image, so that's where I'd start. This is the multi-stage Dockerfile I used for the Axum version of the test app:
# Build stage: full Rust toolchain
FROM rust:1.100 AS builder
WORKDIR /app
# Build dependencies first so this layer is cached until Cargo.toml or Cargo.lock change
COPY Cargo.toml Cargo.lock ./
RUN mkdir src && echo "fn main() {}" > src/main.rs && cargo build --release && rm -rf src
# Then build the real code
COPY src ./src
RUN touch src/main.rs && cargo build --release
# Runtime stage: a small Debian image with no compiler
FROM debian:trixie-slim
RUN useradd --system --uid 10001 app
COPY --from=builder /app/target/release/axum-hello /usr/local/bin/app
USER app
EXPOSE 3000
CMD ["app"]
The trick in the middle is caching. Cargo compiles dependencies and your code in one step, so a naive Dockerfile rebuilds every dependency whenever you change one line. Copying only Cargo.toml and Cargo.lock first, building a dummy main.rs, and then copying the real source means Docker reuses the compiled dependencies layer until your dependencies actually change. The touch makes sure Cargo notices the real main.rs is newer than the dummy one. Tools like cargo-chef do the same thing more thoroughly for workspaces with many crates. Add a .dockerignore containing target so your local build folder isn't sent to Docker.
I built it, ran it and checked the response:
$ curl localhost:3999/hello/docker
{"message":"hello, docker"}
The final image is about 30 MB compressed, which is what gets pushed to a registry and pulled by your host. Unpacked, almost all of that is the Debian slim base (87.7 MB); the layer with the actual application is 1.86 MB. If you want it smaller, a distroless base or a fully static build against musl on a scratch image can get the whole thing down to a few megabytes, at the cost of having no shell inside the container to debug with. For most teams the Debian slim image is the right default.
The image runs as an unprivileged user, which is a cheap habit worth keeping. For comparison, the node:24-slim image I used for the Node.js test is about 81 MB compressed and 333 MB unpacked before your own code and node_modules are added.
A VPS
A small VPS from Hetzner, DigitalOcean, Linode or similar is the cheapest serious option, and Rust makes it go further than most languages. Put the binary or container on the server, run it under systemd or Docker, and put Caddy in front for automatic HTTPS. A Rust API that idles at a few megabytes of memory leaves the rest of a small server for PostgreSQL. You're responsible for updates, backups and monitoring, which is the price of the low bill.
Fly.io
Fly.io runs your Docker image as lightweight VMs in regions you choose, close to your users. It's a good fit for Rust: small images deploy fast and use little memory, which keeps you in the lowest machine sizes. fly launch reads your Dockerfile and sets things up, and Fly also offers managed PostgreSQL.
Railway and Render
Both are platform-as-a-service options closer to the Heroku experience. Connect a GitHub repository and they build and deploy on every push, either from your Dockerfile or by detecting Cargo.toml and building it for you. Both offer managed PostgreSQL next to your service. Expect to pay a little more than Fly for the convenience, and check each platform's current pricing and free tier, because both have changed several times.
A note on Shuttle
Shuttle was a hosting platform built specifically for Rust, where you added an attribute to main and it handled infrastructure for you. As of late 2026 I found conflicting reports about its status, including a pivot to a different model and one report of a shutdown. I couldn't confirm either from Shuttle directly, so I'm not recommending it here. If you're considering it, check shuttle.dev for its current status first.
Serverless and edge
AWS Lambda with cargo-lambda, and Cloudflare Workers with the worker crate, as described above. Both bill by usage and both suit Rust's low memory use, but both also change how you build the app, so decide early rather than trying to port a finished server later.
Which one I'd pick
For a new API that you expect to grow: Axum. It's the ecosystem default, its design is easy to reason about once you're past the first few trait errors, and anything you learn transfers to the rest of the Tokio ecosystem.
For a team that wants Rails-style productivity: start with Loco, but make sure at least one person understands the Axum underneath.
For maximum stability and a 4.x promise: Actix Web.
For a side project where you want the nicest first week: Rocket.
For an API where the OpenAPI spec is the contract: Poem, or Axum with utoipa.
For a full-stack app written entirely in Rust: Leptos if you think in SolidJS-style signals, Dioxus if you think in React or need desktop and mobile too.
That's why our Rust for web developers series uses Axum for its web half. If you're new to Rust, start with part 1, setting up Rust on Windows, macOS and Linux, which also maps Rust's ideas onto JavaScript, Python and Go. A new part comes out every day, and by part 10 we'll be writing our first Axum server.