Search

Laravel Rust Beta Is Here: Taylor Otwell Brings Laravel to Rust

On December 1, 2026, Taylor Otwell announced the first beta of Laravel Rust, a full-stack web framework that brings Laravel's conventions and developer experience to the Rust language. For the many developers who love Laravel's productivity but want the speed and safety of Rust, this is big news.

In this article, we cover what Laravel Rust is, what it includes, and why it matters.

What Is Laravel Rust?

Laravel Rust is not a direct port of Laravel PHP. According to the announcement, it is Laravel reimagined in idiomatic Rust. It keeps Laravel's batteries-included philosophy: routing, middleware, sessions, authentication, database models, queues, mail, testing helpers, and more. It is written the way Rust developers expect.

Two ideas stand out in the announcement:

  • Built for the AI age. Every new application ships with built-in agent skills that guide coding agents on how to write and test idiomatic Laravel Rust code. The team argues that as AI writes more code, strict compilers and strong conventions matter more.
  • Near feature parity. The team says Laravel Rust is already close to Laravel PHP in features, and that the small remaining gaps will be closed in the coming weeks.

Performance: The 18x Claim

The biggest headline is speed. In internal benchmarks on Laravel Cloud, the team reports that Laravel Rust runs 18x faster than Laravel PHP, while using less CPU and memory. They also say it lowers infrastructure cost and tail latency, and lets a single instance handle more traffic during spikes.

These are the team's own benchmarks, so real-world results will depend on your application. Still, it shows what the framework is aiming for.

The framework is built on Axum and Tokio, so everything is asynchronous: HTTP handlers, middleware, database queries, the HTTP client, Redis, queues, S3, SQS, and WebSockets. Blocking work such as bcrypt hashing is moved to a separate thread pool, so slow requests do not stall the rest of your app. Handlers are Axum handlers, so any Axum extractor or tower layer works.

A Quick Look at the Code

Here is the minimal example from the crate documentation:

rust

use std::process::ExitCode;
use laravel::prelude::*;

async fn home() -> &'static str {
    "Welcome to Laravel for Rust"
}

fn web(route: &mut Router) {
    route.get("/", home);
}

fn main() -> ExitCode {
    Application::configure()
        .with_routing(|routing, _| {
            routing.web(web);
        })
        .run()
}

Key Features

Type-Safe Routing

Routes live in src/routes/web.rs and src/routes/api.rs. Route model binding loads a record from the URL and returns a 404 if it does not exist. You can generate URLs from handler functions using macros like route! and redirect!, so a renamed path is caught at compile time instead of leaving broken links.

Typed Validation

Incoming form and JSON data are described as Rust structs with #[laravel::input] and #[validate(...)] rules. Some guarantees come from the types themselves:

  • Every input struct must declare who may submit it, or the code will not compile.
  • Your handler runs only after validation passes. On failure, browsers are redirected back with errors and API clients get a 422 response.
  • No mass-assignment bugs, because only the declared fields are filled.
  • Special types such as Password and PasswordHash keep secrets out of logs and JSON responses.

Models and Relationships

Models are structs annotated with #[model], with relationships such as #[belongs_to] and #[has_many]. Column names, operators, and value types are checked by the compiler. Relationships are never lazy-loaded behind your back, so you load what you need up front, which prevents accidental N+1 queries by design.

Migrations and Safe Raw SQL

Migrations are Rust files compiled into your binary, so a deployed server can run migrate without your source code. The schema builder supports PostgreSQL, MySQL, MariaDB, and SQLite. For raw SQL, the db::query! macro turns every captured value into a bound parameter, preventing SQL injection by construction.

Queues

Jobs are structs deriving Queueable, discovered automatically. When a job holds a model, only its primary key is stored and a fresh record is loaded when the job runs. One API covers database, Redis, Amazon SQS, and Laravel Cloud queue drivers, with retries, middleware, chains, and batches.

Durable Workflows (New)

Workflows are new to Laravel. They let you write a long, multi-day process, such as "send a welcome email, wait three days, then send tips", as one async function. They run on your existing queue workers with no separate orchestration service. A workflow that waits for two weeks uses no worker resources and survives deployments and restarts.

Mail, Broadcasting, and Inertia

  • Mail: typed mailable structs, with HTML and plain-text versions rendered automatically. Resend and Amazon SES are supported.
  • Broadcasting: add #[event(broadcast(..))] to push events over WebSockets. A Rust-based Reverb server is included for local development.
  • Inertia.js: full support for React, Vue, and Svelte, including deferred props, live props, polling, and server-side rendering. Built-in views with Vite integration are available too.

Built-In Extras

Automatic OpenTelemetry tracing, social login (Google, GitHub, Microsoft), feature flags, and isolated full-stack testing with #[laravel::test] are all included.

How to Get Started

The announcement says to install the new Laravel CLI and create your first Laravel Rust application. If you already have an older laravel CLI or Laravel Herd installed, check the installation guide for PATH setup. When you are ready to deploy, you can run the compiled binary on your own servers or use Laravel Cloud, which offers managed databases, caches, queues, WebSockets, and scale-to-zero compute.

Should You Use It Now?

Laravel Rust is a beta, so it is best to try it on side projects first before moving production apps. Laravel PHP is not going away, and the benchmark numbers come from the Laravel team itself. Still, if you want Laravel's developer experience with Rust's performance and compile-time safety, this is worth exploring.

Final Thoughts

Laravel Rust shows the direction web frameworks may take: fast, type-safe, and designed for both humans and AI coding tools. If you already know Laravel, much of the structure will feel familiar, and Rust adds stronger guarantees on top. We will keep following its development as the beta matures.

Source: Official Laravel Rust announcement by Taylor Otwell (December 1, 2026) and the laravel crate documentation.

?

Frequently Asked Questions (FAQ)

1. What is Laravel Rust?

Laravel Rust is a full-stack web framework that brings Laravel's conventions to the Rust language. Taylor Otwell released its first beta on December 1, 2026. It includes routing, validation, models, queues, mail, authentication, durable workflows, broadcasting, and Inertia support. It is built on Axum and Tokio.

2. Is Laravel Rust a port of Laravel PHP? Can I run my existing PHP code on it?

No. The team describes it as Laravel reimagined in idiomatic Rust, not a direct port. You write your application in Rust, so existing PHP code will not run on it as is. If you know Laravel, the structure will feel familiar (routes, models, jobs, migrations), but the code itself is Rust.

3. How much faster is Laravel Rust than Laravel PHP?

In the team's internal benchmarks on Laravel Cloud, Laravel Rust ran 18x faster than Laravel PHP while using less CPU and memory. These are the team's own numbers, so results in your own application will vary depending on your workload, database, and code.

4. Is Laravel Rust ready for production?

It is currently a beta. The team says it is near feature parity with Laravel PHP and that the remaining small gaps will be closed in the coming weeks. For now, it is safest to try it on side projects or internal tools and wait for a stable release before moving critical applications.

5. How do I get started with Laravel Rust, and where can I deploy it?

Install the new Laravel CLI, then create your first Laravel Rust application with it. If you already have an older laravel CLI or Laravel Herd, check the installation guide for PATH setup. You can deploy the compiled binary on your own servers, or on Laravel Cloud, which offers managed databases, queues, WebSockets, and scale-to-zero compute. It supports SQLite, PostgreSQL, and MySQL.
🎯 Interactive Skill Assessment
Laravel Challenge: How Well Do You Know the PHP Framework Devs Love?

Test what you just learned with 31 interactive multiple-choice questions and instant explanations.

Start Free Quiz

Tags

Share This:

NH
Written by Nazmul Hoque • Senior Full-Stack Developer (8+ Years Experience)

Senior Full-Stack Engineer with 8+ years of experience building production web and mobile applications using Laravel, Next.js, TypeScript, JavaScript, React, Vue.js, MySQL, PostgreSQL, and Flutter.

You May Also Like Below Articles

Handpicked related tutorials and step-by-step developer guides to continue learning.