↓ Skip to main content
  1. Posts/

Laravel Rust and Go: Features, Differences, and Setup Guide

·1197 words·6 mins·
Table of Contents

Introduction
#

You probably already know why PHP is still around today. A big part of it is Laravel, right alongside the classic memes about PHP developers driving Lamborghinis and “PHP is dead in 20xx” threads popping up on our feeds every year. (For the record, I still don’t own a Lambo lol, so feel free to send a six-figure job my way.)

In early December 2026, Laravel creator Taylor Otwell announced two new projects on the laravel.com blog. laravel/rust launched on December 1, 2026, followed a day later by laravel/go on December 2, 2026. Both are official MIT-licensed open-source ports of Laravel to:

  • Rust (beta)
  • Go (beta)

Taylor Otwell pointed to three main reasons for targeting both languages:

  1. AI coding agents already handle Rust and Go syntax well. As more developers write and maintain code alongside tools like Claude Code or Codex, strict compilers and strong type systems help keep generated code reliable. Every new Laravel Rust and Laravel Go app also ships with built-in agent skills.
  2. Both languages are widely adopted with mature backend tooling.
  3. Compiled native binaries deliver high throughput with low CPU and memory usage, which PHP is hard-pressed to match.

If you are running Laravel PHP in production, you can relax. Taylor Otwell made it clear that Laravel PHP is here to stay and will not be put into maintenance mode. Alongside these releases, Laravel Cloud was updated to deploy Rust and Go apps natively alongside PHP, Python/Django, and Ruby/Rails.

Keep in mind that both ports are still in public beta (0.x). Breaking changes are expected before 1.0, so pin your dependency versions in Cargo.toml or go.mod if you try them out. Neither is a drop-in replacement for an existing PHP codebase; migrating means rewriting the app. Some first-party PHP packages, such as Laravel Cashier, do not have Rust or Go equivalents yet. Still, between the open-source community and coding agents speeding up contributions, getting to 1.0 might move faster than usual.

Laravel Rust
#

Laravel Rust is in beta, with routing, typed validation, models, queues, durable workflows, mail, broadcasting, and Inertia in idiomatic Rust.

Laravel Rust keeps a project layout that feels familiar to Laravel developers. Under the hood, it is written in idiomatic Rust on top of Axum and Tokio (async runtime) and compiles down to a single binary.

The beta already ships with routing, middleware, typed validation, database models and migrations, authentication, queues, durable workflows, mail, broadcasting, and Inertia integration. Durable workflows handle long-running multi-step processes that survive server restarts or deployments through replay, provided your workflow logic stays deterministic and activities are idempotent.

The main draw is compile-time verification. The Rust compiler checks database column names, relationships, query parameters, validation rules, route bindings, and authorization before your code reaches production. In Laravel Cloud’s internal benchmarks, tested configurations reached up to roughly 18x the requests per second of Laravel PHP while using less CPU and memory.

Laravel Go
#

Laravel Go is in beta, bringing Laravel’s routing, validation, models, queues, workflows, mail, and Inertia to Go’s net/http and goroutines.

Laravel Go follows Go’s preference for keeping things lean. It builds directly on Go’s standard net/http package (compiling to a standard http.Handler) and uses goroutines for lightweight concurrency. Like the Rust port, it compiles into a single binary.

Validation relies on Go’s typed structs, and the database layer uses a generics-backed query builder. Features available in the beta include:

  • Routing (groups and middleware), validation, sessions, and authentication
  • Database models with relationships and migrations for PostgreSQL, MySQL, MariaDB, and SQLite
  • Queues (supporting Redis and Amazon SQS), durable workflows, and task scheduling
  • Mail, testing helpers, Inertia integration (React and Vue), and built-in agent skills

If you want to browse real code examples and app structure, the official documentation is already live at laravel.com/go/docs.

Install Laravel CLI
#

Rust Requirements
#

Before using laravel/rust, make sure you have the following tools installed:

  • Rust 1.99 or newer
  • Node.js (LTS, for frontend assets, Vite, and Inertia)
  • Git
  • A C/C++ build toolchain to compile the default SQLite driver (sqlx-sqlite), such as build-essential on Linux, Xcode CLI Tools on macOS, or Visual Studio Build Tools (C++) on Windows

If you don’t have Rust yet, install it with rustup (the official Rust installer):

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

If Rust is already installed on an older version, update it with:

rustup update

Go Requirements
#

Before using laravel/go, make sure your machine has:

If go is already installed, verify your version:

go version

Installation
#

If you previously installed laravel/installer globally through Composer, remove it first so the laravel binary doesn’t collide in your PATH:

composer global remove laravel/installer

Next, install the standalone Laravel CLI.

On Linux and macOS (installs to ~/.laravel/bin):

curl -fsSL https://laravel.com/install.sh | sh

On Windows via PowerShell (installs to %USERPROFILE%\.laravel\bin):

powershell -ExecutionPolicy Bypass -c "irm https://laravel.com/install.ps1 | iex"

Verify the installation by running:

laravel --version

You should see Laravel CLI 0.3.0 (the latest version at the time of writing).

All set, Laravel CLI is now installed. Make sure its binary directory is in your PATH via .zshrc, .bashrc, or your system environment variables. The CLI is also directory-aware: it forwards to php artisan inside PHP apps, Cargo and the dev runner inside Rust apps, and Go tooling inside Go apps.

Creating an Application
#

Once the CLI is installed, run the command below to scaffold a new project through the interactive picker (PHP, Rust, or Go):

laravel new example-app
cd example-app

To skip the interactive prompt, pass --php, --rust, or --go directly.

Running a Laravel Rust Project
#

laravel new example-app --rust
cd example-app
laravel migrate
laravel dev

Running laravel dev starts the Rust server, queue worker, and Vite together during development. For production builds, run cargo build --release.

Running a Laravel Go Project
#

laravel new example-app --go
cd example-app
laravel migrate
go run .

Other Laravel CLI commands like laravel route:list also work right inside your Go project directory.

Quick Comparison and Which One to Pick
#

AspectLaravel Rust (beta)Laravel Go (beta)
FoundationAxum + Tokio (async runtime)net/http (http.Handler) + goroutines
Language requirementRust 1.99+ (+ C/C++ toolchain for SQLite)Go 1.27+
Scaffold flaglaravel new example-app --rustlaravel new example-app --go
Running locallylaravel dev (cargo build --release for production)go run .
HighlightsCompile-time checks (queries, validation, authorization), broadcasting, ~18x Laravel PHP throughput on Laravel CloudTyped struct validation, generics query builder, task scheduling, PostgreSQL/MySQL/MariaDB/SQLite support

If your team maintains a production PHP app or depends on packages like Laravel Cashier, sticking with Laravel PHP makes the most sense since moving to Rust or Go means rewriting from scratch. For greenfield projects targeting native binary performance, Laravel Rust fits teams that want strict compile-time safety, while Laravel Go is an easier jump if you already know net/http. Because both are still 0.x betas, they are best tested in side projects while tracking their progress toward 1.0.

Resources
#

Unero
Author
Unero
Writing / sharing whatever is on my mind.

Related

Complete Guide to Hololive Dreams

·847 words·4 mins
Learn about Hololive Dreams release, how to download on Steam/PC/APK, resource size, FPS settings, and hidden chest locations.

Jatim Developer Day 2026

·509 words·3 mins
Jatim Tech Hub - Inclusive Tech, Real Impact. The biggest tech conference for developers in East Java.