Ecosystem and crates
Sign in

Topics

Backend

Tools & DevOps

All guides

Search

Topics

Practice

Rust · Ecosystem and crates

Rust for the Web in 2026: Axum, Actix Web, Loco, Rocket and Laravel Rust

Author: Volodymyr Pichkurov Published: 11 min read
Rust Laravel Rust Laravel

Just a year ago, whenever a Laravel developer said "let's move part of the site to Rust", the conversation stalled on "okay, but what do we write it in?" There were plenty of answers, and none of them were for us: a router here, an ORM there, queues — build them yourself. In December 2026 the picture looks different. Rust now has a Rails-style framework that has reached 1.0, and the Laravel team has shipped a Rust framework of its own.

Below are today's five main contenders, the same route written in each, and an honest answer to which one a PHP developer should pick.


TL;DR

  • Axum — the de facto standard: the most popular, built by the Tokio team, but it's a construction kit rather than a framework in the sense we're used to.
  • Actix Web — fast and mature: a stable fourth major version since 2022 and frequent releases.
  • Rocket — the nicest syntax, but long pauses in development; the project has come back to life and is preparing 0.6.
  • Loco — Rails in Rust: generators, ORM, background jobs. Stable since July 2026.
  • Laravel Rust — Laravel reimagined in Rust: routes, models, queues, migrations, mail. In beta since December 1, 2026.

If you write Laravel and want to move part of your application to Rust, look at Laravel Rust. If you're starting a new service and need stability right now — look at Loco or Axum.


The landscape as of December 4, 2026

Figures are from crates.io on the day of publication. Downloads are counted over the crate's entire history, so older projects have a head start, but the orders of magnitude speak for themselves.

Framework Version Latest release Built on Downloads PHP-world equivalent
Axum 0.8.9 Apr 14, 2026 Tokio, Tower, Hyper ≈ 644M Slim, a microframework
Actix Web 4.20.0 Nov 17, 2026 its own runtime on top of Tokio ≈ 94M Slim with its own ecosystem
Rocket 0.5.4 and 0.6.0-rc.1 Nov 19, 2026 and Nov 21, 2026 Hyper, Tokio ≈ 15M feels like Lumen
Loco 1.4.0 Nov 30, 2026 Axum, SeaORM 2.0 ≈ 0.8M Laravel, Rails
Laravel Rust 0.1.6 Dec 3, 2026 Axum, Tokio ≈ 45K in five days Laravel

The latest stable Rust is 1.100.1. Laravel Rust requires at least 1.99, so an old toolchain will need an update.


One route in five frameworks

The task is simple: GET /hello/{name} returns the JSON {"hello": "…"}. Nothing shows each framework's character better.

First, here's what it looks like back home:

php
Route::get('/hello/{name}', fn (string $name) => ['hello' => $name]);

Axum

rust
use axum::{extract::Path, routing::get, Json, Router};
use serde_json::{json, Value};

async fn hello(Path(name): Path<String>) -> Json<Value> {
    Json(json!({ "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();
}

No magic: a handler is a plain async function, and its arguments are extractors that pull whatever you asked for out of the request. Since 0.8, route parameters go in curly braces, just like in Laravel, instead of using a colon.

Actix Web

rust
use actix_web::{get, web, App, HttpServer, Responder};
use serde_json::json;

#[get("/hello/{name}")]
async fn hello(name: web::Path<String>) -> impl Responder {
    web::Json(json!({ "hello": name.into_inner() }))
}

#[actix_web::main]
async fn main() -> std::io::Result<()> {
    HttpServer::new(|| App::new().service(hello))
        .bind(("0.0.0.0", 3000))?
        .run()
        .await
}

The route is an attribute sitting right on top of the function. Feels a lot like route attributes in Symfony.

Rocket

rust
#[macro_use]
extern crate rocket;

use rocket::serde::json::{json, Value};

#[get("/hello/<name>")]
fn hello(name: &str) -> Value {
    json!({ "hello": name })
}

#[launch]
fn rocket() -> _ {
    rocket::build().mount("/", routes![hello])
}

The shortest version of all. Rocket checks a lot at compile time and at launch: make a typo in a parameter name and the program won't build.

Loco

rust
use loco_rs::prelude::*;

async fn hello(Path(name): Path<String>) -> Result<Response> {
    format::json(serde_json::json!({ "hello": name }))
}

pub fn routes() -> Routes {
    Routes::new().prefix("hello").add("/{name}", get(hello))
}

Under the hood it's Axum, with the same extractors. But there's already a whole application around it: per-environment configuration, cargo loco generate scaffold, migrations, jobs, mail.

Laravel Rust

rust
use laravel::prelude::*;
use serde_json::{json, Value};

pub fn routes(route: &mut Router) {
    route.get("/hello/{name}", hello);
}

pub async fn hello(Params(name): Params<String>) -> Json<Value> {
    Json(json!({ "hello": name }))
}

Look familiar? route.get(...), the src/routes/web.rs and src/routes/api.rs files, web and api groups with the same rules as in PHP. And here's the actual DevSense routes file that's already running in production:

rust
/// Routes under `/api` (stateless: no session, no cookies).
pub fn api(route: &mut Router) {
    // PHP: RateLimiter 'visit-beacon' — 30 a minute per visitor address.
    route
        .post("/visit", visit::store)
        .middleware(Throttle::per_minute(30).bucket("visit"));

    // PHP: ZoneHookController::check — the git pre-commit hook of the team space. Its limits
    // (throttle:mcp, per token, invalid tokens per address) live in the handler, as in PHP.
    route.post("/zones/{project}/check", zones::check);

    route.fallback(async || laravel::abort(404));
}

Axum: the standard, but you assemble it yourself

What it is. A web framework from the Tokio team — the same people behind Rust's main async runtime. It's built on Tower: any middleware from the Tower ecosystem (compression, CORS, timeouts, tracing) plugs in with a single line.

Maturity. The version number is still 0.x, but that stops no one: Axum is the foundation of both Loco and Laravel Rust, and it's what most new Rust projects choose. The 0.8 line landed on the first day of 2025, and the latest release is 0.8.9 from April 2026. There have been no new versions since, but development continues: 0.9, with breaking changes, is being prepared on the main branch.

What's missing. ORM, migrations, queues, mail, templates, validation, authorization. Each of these is a separate crate that you pick and wire up yourself: sqlx or SeaORM for the database, apalis for jobs, lettre for mail, validator for rules. To a Laravel developer it feels like Slim: elegant and fast, but the first month goes into assembling your own mini-framework.

Who it's for. Teams that already write Rust, microservices, no-frills APIs, and anyone who wants full control.


Actix Web: fast and stable

What it is. One of Rust's oldest web frameworks. It topped the TechEmpower benchmarks for a long time and is still among the fastest.

Maturity. The fourth major version has been stable since 2022, which is rare in the Rust world: years without breaking changes. Releases come often — 4.18, 4.19 and 4.20 all shipped in a single autumn, now automated through release-plz.

What's missing. The same things as Axum: database, queues, mail — all separate crates. Its own middleware ecosystem (actix-session, actix-identity, actix-web-lab) isn't directly compatible with Tower, so some ready-made pieces from the Axum world won't carry over.

Who it's for. High-load APIs where you need a version that stays stable for years.


Rocket: beautiful syntax and a 29-month pause

What it is. The framework that first showed how pleasant web development in Rust could be: route attributes, request guards, forms, cookies, templates — all out of the box.

Maturity. Here's the big caveat. Version 0.5.1 came out in May 2024, and the next one, 0.5.2, only in October 2026. Twenty-nine months of silence, and issues in the repository asking "is this project even alive?" It has clearly come back to life now: 0.5.3 and 0.5.4 shipped in November, and on November 21 came the first release candidate for 0.6.0. But the pause did happen, and it's worth keeping in mind when you're choosing a foundation for years to come.

What's missing. An ORM and queues in the core; for the database there's rocket_db_pools.

Who it's for. Learning projects, internal tools, and anyone who values syntax over ecosystem. For production meant to last years — wait for a stable 0.6 and watch the pace.


Loco: Rails in Rust, now stable

What it is. A "one-person framework", as its authors call it: every layer in one place, conventions over configuration. Under the hood — Axum for HTTP and SeaORM for models and migrations.

Maturity. The first stable version, 1.0, came out at the end of July 2026, with the move to SeaORM 2.0 as the headline. Since then, roughly one release a month: 1.1 in August, 1.2 in September (a skill for AI agents, row-level multi-tenancy, signed file URLs), 1.3 in early November, 1.4 on November 30.

What you get. Generators (cargo loco generate scaffold creates a migration, a model and a CRUD controller), background jobs, a scheduler, mail, file storage, JWT authentication, tests.

What's missing. Laravel compatibility. It's a good Rails-style framework, but its tables, sessions, queues and encryption are all its own. Moving a Laravel application onto it means rewriting it.

Who it's for. New Rust products built from scratch, especially if the Rails and Laravel approach feels like home.


Laravel Rust: the same Laravel, only in Rust

What it is. The official framework from the Laravel team, announced by Taylor Otwell on December 1, 2026. Not a port of the PHP code but a reimagining: Laravel's conventions wherever they can be kept, and compiler checks wherever Rust allows. Built on Axum and Tokio.

What you get. Routes, #[model] models with relationships and compile-time-checked queries, migrations, seeders, queues (database, Redis, SQS), mail, events and WebSockets with its own Reverb, sessions, encryption, Inertia for React, Vue and Svelte, tests. Plus something new that the PHP version doesn't have — durable workflows: a multi-day process is written as a single async function and survives deploys and restarts.

Speed. According to Laravel's own benchmarks on Laravel Cloud, it's 18 times faster than the PHP version. That's the vendor's number; we'll publish our own DevSense measurements in an honest breakdown.

Maturity. Beta. Versions 0.1.0 through 0.1.6 shipped in five days, and breaking changes are possible before 1.0. But for a Laravel developer, what matters here isn't the version number — it's that the mechanisms are the same: APP_KEY, cookies and encryption are compatible with PHP Laravel. That means you can run Rust alongside a live application rather than instead of it.

What's still missing. Full compatibility with PHP Laravel where the formats have diverged: the session payload, the authenticated user key, the queued job format. We've covered this on our side with a php-compat module and plan to upstream it.

Who it's for. Laravel teams that want to speed up hot paths without rewriting the whole application, and anyone starting a new project who's willing to live on a beta for the sake of a familiar API.


What to ask a framework if you're coming from PHP

Where's the ORM? In Axum and Actix — nowhere, you pick your own: sqlx (SQL with compile-time query checks), SeaORM (the closest thing to Eloquent), Diesel (a strict query builder). In Loco — SeaORM. In Laravel Rust — its own Eloquent-style ORM, but without lazy relationships: you eager-load everything you need up front with with, and the N+1 problem simply disappears.

Where are the queues and migrations? Out of the box — only in Loco and Laravel Rust. Everything else needs third-party crates.

Async. In PHP each request lives in its own process; in Rust, a single Tokio process serves thousands of requests. That's where the memory savings come from — and a new discipline: no blocking calls in a handler.

Compilation. The first build of a project with its dependencies takes minutes, not seconds. The fix is to build in CI with a cache and ship a ready-made binary to the server.

Deployment. A single binary — no PHP, no vendor/, no extensions. Laravel Rust migrations are embedded in the binary, so the source code doesn't need to be on the server.


Why DevSense chose Laravel Rust

We're not rewriting DevSense. We're moving it one route and one mechanism at a time, and the PHP application keeps running the whole way. For that kind of journey the choice is almost obvious:

  • a shared database and a shared APP_KEY — Rust reads the same tables and decrypts the same cookies;
  • nginx splits the routes — Rust answers /api/visit, Zone checks and team member search, PHP handles everything else;
  • familiar mechanisms — models, queues, migrations and seeders work the way they do in PHP, so every step of the move is a translation, not an invention.

The price is the beta. The framework shipped seven versions in its first week, so we pin it in Cargo.lock, update deliberately, and run tests that compare Rust's responses with PHP's. The results so far: the Rust HTTP server uses 16 MB of memory, the queue worker 17 MB, and a php-fpm process about 62 MB.

The whole journey, step by step, is in the series "From Laravel to Laravel Rust".


Cheat sheet

  • Moving part of a Laravel application → Laravel Rust, alongside PHP, route by route.
  • A new Rust product that needs stability and batteries included → Loco.
  • A microservice or API, and the team knows Rust → Axum.
  • A high-load API whose version has to last for years → Actix Web.
  • A learning project or a good-looking internal tool → Rocket, with an eye on 0.6.

Links

Was this guide helpful?

Read next

// Newsletter

New Rust guides by e-mail

One e-mail a week with new guides on Rust. No spam, unsubscribe in one click.

About the author

Volodymyr Pichkurov View portfolio

Spotted a mistake? Suggest an edit

Help us improve this article. Suggest edits, additions, or corrections.

No suggestions submitted yet. Be the first to share your feedback!

On this page