Laravel Rust Deep Dive: What Taylor Otwell Actually Shipped, and Who Should Care

Executive Summary
- Laravel Rust is real and in beta. Taylor Otwell announced it on the official Laravel blog on December 1, 2026, as Laravel's ideas rebuilt in idiomatic Rust rather than a line-by-line port, with near feature parity to Laravel PHP (Laravel blog).
- Laravel PHP is not being retired. Otwell's letter says PHP is not entering maintenance mode, weekly releases continue, and both frameworks will be developed in parallel (A letter to the Laravel community).
- The 18x number is about headroom under overload, not everyday latency. Rust peaked at 1,774 RPS against PHP's 97 in a ramp test, but at a steady 50 RPS median latency was 62 ms vs 78 ms. The bigger gap there was CPU: about 4% vs 52% (benchmark).
- The most interesting part is the safety model. Input authorization is required before code compiles, mass assignment is blocked, raw SQL is parameterized by construction, and lazy loading is off by design (validation docs, blog).
- Durable workflows are new to Laravel altogether. Multi-day processes are written as one async function that survives restarts and deploys (workflows docs).
- The trade-off is build time and the learning curve. Cold builds on Laravel Cloud took a median of about 3 minutes for Rust vs 27 seconds for PHP (benchmark).
What Laravel Rust is
Laravel Rust is a full-stack web framework that brings routing, middleware, sessions, auth, models, queues, mail, broadcasting, Inertia and testing helpers to Rust. Under the hood it sits on Axum and Tokio, so handlers, database calls, HTTP clients, Redis, queues, S3, SQS and WebSockets are all non-blocking. CPU-heavy or blocking work such as bcrypt hashing and local disk I/O is pushed to Tokio's blocking pool (Laravel blog).
The framework was built in roughly two months with heavy use of cloud agents, but Otwell says he hand-curated every API surface, convention and docs page himself (letter). It is open source under MIT, like Laravel PHP (Hacker News discussion).
The rumours were not new. Developers had tracked hints of a Rust project, nicknamed "Omega", since mid-2026, including an inertia-omega crate and Rust snippets Otwell posted in October (Hoceine El Idrissi).
Why Rust, and why now
Otwell gives two reasons in his letter (source):
- Ambitious teams are choosing Rust. He wants Laravel to stay an option for the most demanding web apps of the coming years.
- AI changes what a framework needs to be. He argues that people will increasingly not write or even read application code by hand at scale, so strict compilers, strong guardrails and batteries-included conventions matter more than ever.
That second point shows up in the product. Every new Laravel Rust app ships with built-in agent skills that teach coding agents how to write and test idiomatic code (Laravel blog). The idea is simple: if an agent writes most of the code, the compiler becomes your first reviewer.
The safety model: guarantees the compiler enforces
This is the part I found most important, and it is where Laravel Rust differs most from Laravel PHP.
Every input must declare who may submit it
Request input is a typed struct. It has to say who is allowed to send it: anyone, authenticated, or a custom authorize function. Leave that out and the app does not compile (validation docs). A minimal form looks like this (adapted from the docs):
#[laravel::input(fills = Post)]
#[validate(authenticated)]
pub struct StorePost {
#[validate(required, max_length(255))]
title: String,
#[validate(required)]
body: String,
}Validation runs before your handler. Browsers are redirected back with errors and API clients get a 422 (blog).
No mass assignment, no leaked secrets
- Mass assignment is not possible. Only the columns you declared get filled (blog).
PasswordandPasswordHashstay redacted. They don't show up in logs or JSON, and password fields are dropped from the old input when a form is shown again after an error (validation docs).Sometimes<T>fixes PATCH requests. AnOptioncan't tell "field omitted" from "field sent as null".Sometimes<T>can, and omitted fields leave their columns unchanged on save (validation docs).
SQL injection and N+1 are designed out
- Raw queries are parameterized by construction. The
db::query!macro binds captured variables as parameters and never concatenates values into SQL (blog). - No silent lazy loading. Relationships load only when you ask for them with
with, which removes the classic N+1 trap (blog). - Links are checked at compile time. URLs are generated from handler functions with
route!andredirect!, so a broken link is a build error, not a 404 in production (blog).
From a security point of view, this turns several OWASP-style mistakes (missing authorization, mass assignment, injection, secrets in logs) from code review problems into compiler errors.
Durable workflows: the genuinely new feature
Laravel PHP never had this. In Laravel Rust, you write a multi-day process (onboarding, billing retries, approval chains) as one async function (workflows docs):
#[workflow(name = "onboard-user")]
impl OnboardUser {
async fn handle(self, run: &Run) -> laravel::Result<()> {
run.step("welcome email", self.send_welcome()).await?;
run.sleep(3.days()).await?;
if run.step("count projects", self.count_projects()).await? == 0 {
run.step("send tips", self.send_tips()).await?;
}
Ok(())
}
}How it behaves, per the docs:
- Each step runs once. Its result is saved under the step name and replayed on later advances.
- Sleeps hold no worker. They are delayed queue jobs, so a two-week wait costs nothing.
- Runs can wait for webhooks.
run.wait_forsuspends until your app callsworkflow::resume. Signed webhook and resume URLs are built in. - Failed steps retry. The default is three tries with backoff, and you can mark errors as fatal.
- Deploys are safe if you follow the rules. Adding a step is fine. Renaming a step makes it run again, so don't rename steps that have side effects. Set an explicit workflow
namebefore production so moving the struct doesn't orphan running flows.
Two practical warnings from the docs: handle must be deterministic (all I/O goes inside steps), and a step can run twice if a worker crashes at the wrong moment, so pass step.key() as an idempotency key to external APIs.
Everything else in the box
- Models and migrations:
#[model]structs withbelongs_toandhas_many, typed enum/JSON columns, and migrations compiled into the binary, so a server can runmigratewithout shipping source. It supports PostgreSQL, MySQL, MariaDB and SQLite (blog). - Queues: jobs are discovered automatically. Models serialize only their primary key and reload fresh. Drivers: database, Redis, SQS and Laravel Cloud managed queues (queues docs).
- Concurrency:
laravel::taskgives youtry_join!,select!,spawn_blockingandbackground, with tracing context carried through (tasks docs). - Real-time: broadcast events plus a Rust Reverb-compatible WebSocket server that works with Laravel Echo (broadcasting docs).
- Frontend: Inertia for React, Vue and Svelte with SSR, deferred props and live props, plus classic server views with Vite (Inertia docs).
- Ops and testing: automatic OpenTelemetry tracing, social login (Google, GitHub, Microsoft), feature flags, and
#[laravel::test]with an in-memory app and a controllable clock (testing docs).
Reading the 18x benchmark properly
Laravel published its methodology and a public repo, laravel/laravel-framework-benchmarking-2026 (benchmark). The setup was a simple read-only API on Laravel Cloud Pro 4 GiB instances, with MySQL holding just 200 rows.
| Test | Laravel Rust | Laravel PHP |
|---|---|---|
| Ramp test, best 10s window | 1,774 RPS, p99 137 ms | 97 RPS, p99 2,707 ms |
| Steady 50 RPS, median latency | 62 ms | 78 ms |
| Steady 50 RPS, CPU / RAM | 4.2% / 16 MB | 52.4% / 134 MB |
| Wake from sleep, median | 154 ms | 712 ms |
| Cold build on Cloud, median | 3m 1s | 27s |

Bar chart of Laravel's published benchmark: Laravel Rust 1,774 RPS vs PHP 97 in the ramp test, 4.2% vs 52.4% CPU and 16 MB vs 134 MB RAM at a steady 50 RPS, 154 ms vs 712 ms wake from sleep, and 3m 1s vs 27s cold builds
My read on these numbers:
- 18x is a ramp-to-collapse number. PHP hit 95% CPU within the first few minutes, while Rust didn't get there until about minute 18. One analysis puts it well: the figure is about headroom and cost, not stopwatch speed (DEV Community).
- The real win is cost per request. Similar latency at a tenth of the CPU and memory means smaller instances, and with faster wake-ups that adds up on scale-to-zero hosting.
- Treat it as vendor data. Laravel's own staff wrote it, it ran on Laravel Cloud, Octane wasn't tested, and the database was too small to stress. The post itself says complex apps will see different results (benchmark).
The business angle
The same day, Laravel also announced that Laravel Cloud now runs Rust apps alongside PHP (Laravel blog). Commenters on Hacker News pointed out that first-party Laravel ecosystems in more languages are also good growth for the VC-backed Cloud platform (Hacker News). That doesn't make the framework less useful, but it explains the timing.
The ecosystem is moving quickly too. Spatie released 27 Rust crates ported from its PHP packages, all at 0.1.0 and marked as not yet stable (daily.dev), and Filament has said it's building a Rust version (Sulat).
Should you use it?
Try it now if:
- You run high-traffic APIs, real-time features or long-running processes where CPU and memory cost real money.
- You already have Rust skills, or you're starting a new project with AI agents writing most of the code.
- You want the security guarantees above enforced by the compiler instead of by code review.
Wait if:
- Your app is a typical CRUD product that already performs fine on PHP. At normal load, the latency difference is small.
- You rely on the PHP package ecosystem. Most of it hasn't been ported, and the ports that exist are early.
- Your team doesn't know Rust. Laravel's conventions help, but ownership, lifetimes and slower builds are still part of the deal.
- You need production stability. It's a beta, and parity with PHP is "near", not complete (Laravel blog).
My take: Laravel Rust matters less as "PHP but faster" and more as a test of a bet: when agents write the code, the framework and compiler should catch the mistakes. If that bet holds, other ecosystems will follow.
Getting started
Install the new Laravel CLI, create an app, and either deploy the compiled binary to your own servers or use Laravel Cloud (installation docs, Laravel Cloud for Rust).
Sources
- Introducing Laravel Rust — Laravel blog
- A letter to the Laravel community — Taylor Otwell
- Laravel Rust benchmark — Laravel blog
- Laravel Rust and Laravel Cloud for every framework — Laravel blog
- Laravel Rust documentation
- Validation docs
- Workflows docs
- Queues docs
- Tasks docs
- Broadcasting docs
- Inertia docs
- Testing docs
- Laravel Rust Is 18x Faster, But That Is Not the Point — DEV Community
- Hacker News discussion
- Laravel Omega: What We Actually Know — Hoceine El Idrissi
- Spatie ported Laravel packages to Rust — daily.dev
- A hands-on guide to Laravel Rust — Sulat
Comments
Share your thoughts and join the conversation
Leave a Comment
Keep reading.

Authentik and RabbitMQ Critical Fixes, SvelteKit and Nuxt Patches: Dev Stack Release Audit, Week of November 23, 2026

OpenCode 2.4 Adds a Browser and Automations, Claude Code Loads Skills From MCP, Copilot Review Billing Shifts
