Laravel Rust has entered public beta, bringing the Laravel framework to the Rust language. The beta covers routing and middleware, sessions and login, database models, queues, mail, workflows and tools for testing. The Laravel team says the project is near feature parity with Laravel PHP, and that the remaining gaps will close within weeks.
More than a straight port
Laravel Rust isn’t a line-by-line translation. The team describes it as Laravel redone in idiomatic Rust, aimed at developers who build with AI coding agents. New apps come with agent skills already installed: instructions that teach a coding agent how to write and test the framework’s idiomatic code.
The design rests on a bet that people will write and read less application code by hand as time goes on. If that’s right, the team argues, strict compilers, firm guardrails and well-stocked default conventions count for more. Rust’s compiler is a good fit for that idea because it rejects a lot of mistakes before the code runs.
Speed claims
Laravel’s own tests on Laravel Cloud showed Laravel Rust running 18 times faster than Laravel PHP, with far lower CPU and memory use. The team says that lowers infrastructure cost and tail latency, and lets a single instance absorb more traffic during a spike.
These are the team’s own numbers, from its own platform, and no test details were published with the announcement. Independent benchmarks on real applications will be the better guide.
Built on Axum and Tokio
Everything sits on Axum and Tokio, which makes the stack asynchronous throughout. Request handlers, middleware, database access, outgoing HTTP calls, Redis, queues, S3, SQS and WebSockets never block a thread. Jobs that inherently do, like hashing passwords with bcrypt or reading local disk, run on a separate blocking pool that Tokio provides.
The payoff comes when a request stalls. A slow query, a sluggish webhook from another service or a lengthy AI API call doesn’t tie up its thread, so the same threads go on handling thousands of other requests, background work and queued jobs. Apps that call AI services feel this most, since those calls can take seconds.
Checks at compile time
The compiler acts as a first reviewer. If a form field, a relationship or a permission check doesn’t line up with the rest of the code, the build fails instead of the error appearing in production. For teams that let coding agents write much of the code, that gives the agent immediate, strict feedback.
Rust’s type system lets the framework catch problems earlier. Column names, model relationships, validated form data, permission checks and secrets are all verified when the code compiles. In PHP such mistakes tend to appear only when the app runs.
Routing and handlers
Routes are declared in src/routes/web.rs for pages and src/routes/api.rs for API endpoints, and each incoming request is matched against them. Simple endpoints can be inline closures. Route model binding fetches a record straight from part of the URL, and bigger endpoints can move into handler modules under src/http/handlers/.
The team stresses that the beta is broad. Alongside the core pieces already named, it also has encryption, file storage, scheduled tasks, console commands and package development tools, so teams moving over won’t be starting from a thin base. The remaining gaps are small, the team says.
What comes next for Laravel Rust
The release has more in it than one announcement could cover, so the team points developers to the full documentation for the complete list.
For PHP teams weighing a move, the pitch is familiar Laravel conventions on a faster runtime, with a compiler that catches more errors early. For Rust developers, it offers a full-stack framework with the batteries already included. The open questions are how well the beta holds up outside the team’s own benchmarks, how the ecosystem of packages grows, and how quickly the last parity gaps close. The team’s own estimate is a few weeks.
Source: Laravel