Laravel reinvents itself in Rust

Laravel has launched Laravel Rust, a framework written in Rust that keeps the Laravel way of working and compiles your application into a single binary. Here is what it is, why it is coming out now and what it could change when it comes to hosting your apps.

On 1 December 2026 Laravel released the first beta of Laravel Rust. It is the first time in fifteen years that the Laravel name has been tied to a language other than PHP.

Taylor Otwell started Laravel in late 2010 as a personal project, while working at a company that programmed in .NET, and released the first version in June 2011. The idea was to offer a more complete alternative to CodeIgniter, which at the time didn't ship with things as basic as user authentication. Fifteen years on, Laravel is one of the most widely used PHP frameworks in the world, with a company behind it that closed a 57 million dollar round with Accel in 2024 and, since 2025, its own hosting platform, Laravel Cloud.

A framework written from scratch

Laravel Rust is a framework written from scratch in Rust. It reproduces Laravel's concepts (routes, models, middleware, validation, queues, authentication) and compiles the whole application into a single binary, which runs without an interpreter and without booting the framework on every request.

That means your current Laravel app won't get any faster. Unlike Octane or a PHP extension, using Laravel Rust means writing the application in Rust, against its own APIs.

Laravel launched it with one number: 18 times the throughput of Laravel PHP. In its tests, the Rust version handled 1,774 requests per second without errors and the PHP version 97, with the same application and the same server size.

Why now?

Ten years ago, rewriting an entire framework in another language would have taken years and a large team. Getting to a beta in a couple of months has a lot to do with how the way we program has changed.

First came AI autocomplete, suggesting the next line. Then chat assistants, where we pasted a chunk of code to have it explained or fixed. And over the last year and a half, agents: tools like Claude Code, Codex or Cursor that read the project, write the code, run the tests and fix whatever fails. You no longer need one open in the terminal; you can launch several in the cloud and have them work in parallel. We recently wrote about how we get several agents working on the same project.

When most of the code is written by an agent, how easy it is to check that the code is correct carries more weight when choosing a language. Taylor Otwell says in the announcement that he hasn't written a line of code by hand in a year, and that Laravel's teams already work in Go and Rust as well as PHP, partly thanks to AI.

What Rust is

Rust is a compiled programming language that began in 2006 as a personal project of Graydon Hoare, an engineer at Mozilla. Mozilla adopted it in 2009, version 1.0 came out in 2015 and since 2021 it has been maintained by the Rust Foundation, backed by companies such as AWS, Google and Microsoft. Today it is used in places hardly known for following fashion, like the Linux kernel, Windows and Cloudflare's infrastructure.

The problem it sets out to solve is the one with C and C++. They are very fast languages, but they leave memory management to the programmer, and sooner or later something slips through: a pointer to memory that has already been freed, a buffer that overflows, two threads writing to the same place at once. Microsoft and Google have said more than once that around 70% of their serious security bugs come from errors of this kind.

Rust offers similar performance without that risk and without a garbage collector. It does so through an ownership system: each value has a single owner, and the compiler checks on every line who can read or modify it. If the code could cause a memory error or a race condition, it simply doesn't compile.

That strictness has been the main complaint for years (Rust's learning curve has a reputation, and rightly so), but when an agent writes the code it works in your favour. Strict types leave little room for the agent to get something wrong without anyone noticing, and the memory errors that show up in production in other languages stay in the compiler here. There is no null and no hidden exceptions either: whatever can fail is in the function signature and has to be handled.

Rust's error messages also say what is wrong, where, and often how to fix it. An agent working in a loop (write, compile, fix) gets that feedback instantly and at no cost. So by the time the code reaches the person reviewing it, the compiler has already filtered out a good share of the bugs.

What Laravel Rust is

Laravel Rust was built by Taylor Otwell, Laravel's creator, in two months and with heavy use of AI agents in the cloud. His role, as he tells it, was mostly design: for each API he asked himself what the most "Laravel" way to do it in Rust would be, and he left out the legacy pieces that fitted neither the language nor AI-assisted programming.

Under the hood it uses Axum and Tokio, two well-established Rust libraries for web servers and asynchronous code. Until now, if you wanted to build a web app in Rust, Axum or Actix Web gave you the router, and the rest (authentication, sessions, ORM, validation, migrations, queues) you picked and wired up yourself, crate by crate. Laravel Rust comes with all those pieces already integrated, which is exactly what made Laravel popular in PHP.

Key points

The whole application compiles into one executable, with no interpreter. It includes routing, middleware, validation, sessions, authentication and authorisation; an ORM, query builder, pagination, migrations and seeders; queues with job chains and batches, and a scheduler. Models and queries are typed and checked at compile time, so a misspelt field never reaches production.

It supports Inertia with React, Vue and Svelte, and events and broadcasting run on Laravel Reverb. It also ships with storage, mail, notifications by email, SMS and Slack, testing utilities and OpenTelemetry tracing.

Every new application includes instructions and documentation so that agents like Claude Code can write and test Laravel Rust code. It is open source under the MIT licence, and the documentation is at laravel.com/rust.

Bear in mind it is a beta: until version 1.0, APIs and configuration may change, and Laravel expects to need six to eight weeks of feedback before calling it stable. Laravel PHP, for its part, carries on. According to the announcement, if you write PHP nothing changes.

Benchmarks

Laravel rust benchmark throughput

Source: benchmark published by Laravel, December 2026. Laravel PHP with Octane and FrankenPHP, 4 workers.

The 18x comes from dividing 1,774 by 97, and it is worth looking at how it was measured.

Laravel built a small API with two read-only endpoints over a database of 200 posts and 10 authors, and implemented it in six frameworks: Laravel Rust, Laravel PHP, Rocket (Rust), Beego (Go), Rails and Django. All of them ran on Laravel Cloud on the same server size, a Pro 4 GiB instance, with a MySQL database of the same size. Traffic ramped from 1 to 2,000 requests per second over 20 minutes, and for each framework the maximum it sustained without errors was recorded. Laravel PHP ran with Octane and FrankenPHP and 4 workers, a setup considerably faster than the usual PHP-FPM.

In the chart above, Laravel Rust comes first, with Rocket and Beego close behind. The advantage comes mainly from all three using compiled languages, and Laravel Rust reaches those numbers with the convenience of Laravel.

Laravel also measured resource use under constant load, startup and build time. At a constant 50 requests per second, Laravel Rust used 4.2% CPU and Laravel PHP 52.4%. After scaling to zero, the Rust version woke up in a median of 154 ms and the PHP version in 712 ms. A cold build on Laravel Cloud took a median of 3 min 1 s for Rust and 27 s for PHP.

Under normal load, median latency was similar across all six frameworks, between 60 and 80 ms, but the Rust version used more than ten times less CPU to serve the same traffic. Builds, on the other hand, go from seconds to minutes because the Rust compiler checks much more. Locally, an incremental build after a small change takes about a second.

There are two caveats. It is the vendor's own benchmark, although the code is public. And the application is very small and only reads data, with no writes, authentication or heavy queries.

In real applications, where much of the time goes on waiting for the database or external services, the gap will be smaller. Even so, it matches what independent comparisons such as TechEmpower have shown for years: in synthetic tests, compiled frameworks typically deliver 10 to 30 times the throughput of common PHP frameworks.

What it means for hosting

A Laravel app in PHP needs a specific environment: the right PHP version, its extensions, PHP-FPM or Octane, a web server in front and Composer to install dependencies. With Laravel Rust you deploy an executable that listens on a port. You can put it in a minimal container, run it with systemd on a VPS or push it to any platform that accepts a binary or a Docker image. You will still need the database, storage, queue workers and frontend assets, but the application server gets much simpler.

Then there is CPU. If serving the same traffic takes a tenth of the CPU, you can use smaller servers or fewer instances, and in the end that is money. It also suits scaling to zero very well: an app that wakes up in 154 ms instead of 712 ms can be left to sleep without the first user noticing as much.

The catch is that not every host will do. Classic shared hosting, built for uploading PHP files, isn't set up to run a process of your own. PHP-focused providers will need to add specific support. And the deployment pipeline changes: compiling Rust takes longer and uses more resources, so it makes sense to compile in CI and deploy the binary already built for the server's architecture.

Laravel, as you would expect, has already sorted this out in-house. Laravel Cloud supports Laravel Rust with managed queues and scaling to zero, and with the launch it has opened the platform to Rails, Django, Go and Node at no extra cost on any plan. A PHP app and a Rust app can also share a database, so you can migrate gradually, starting with the endpoints that get the most traffic.

And what about us?

As a studio that has been working with Laravel for years, we are pretty excited about this launch. It doesn't catch us off guard either: we have been experimenting with Rust in our lab for a while, precisely because we could see it fits agent-assisted development very well. Laravel putting its way of thinking about a framework on top is what Rust was missing to make sense for the kind of web applications we build.

Our plan is to start at home. We are going to migrate one of our internal applications to Laravel Rust, see how it behaves under real load and how it gets on with our agents, and we will report back here. We also hope hosts like fortrabbit, who we enjoy working with, will soon let us deploy this new framework.

If you are thinking of trying it, our advice is the usual: start with a small new project rather than the application that pays the bills, and remember it is still a beta.

Sources

Laravel Rust is here, and Laravel Cloud now runs your framework, Laravel blog, 1 December 2026

Laravel Rust: A New Rust Web Framework From Laravel, Laravel News

Laravel launches a Rust framework, says it's 18x faster than PHP, RuntimeWire

Laravel Rust Is Here: What the 18x Benchmark Really Measured, DEV Community

Laravel Rust is here: what it means for your Laravel app, DSRPT

Frequently asked questions

No. Laravel PHP carries on and, according to the announcement, if you write PHP nothing changes. Laravel Rust is a separate framework with the same concepts, for those who want to write their application in Rust.

There is no automatic conversion: the application has to be rewritten in Rust, against the new framework's APIs. Since a PHP app and a Rust app can share a database, you can migrate in stages, starting with the endpoints that get the most traffic.

Anywhere that runs a binary or a Docker image: a VPS with systemd, a container or Laravel Cloud, which already supports it. Shared hosting built for uploading PHP files won't work.

It is still a beta. Until version 1.0, APIs and configuration may change, and Laravel expects six to eight weeks of feedback before calling it stable. To try it out, a small new project is the safer bet.