Start free
Available now, in beta

Deploy Laravel for Rust. One binary, in your own accounts.

Laravel for Rust compiles your application to one binary that speaks HTTP itself. Brewless builds it, runs its migrations and puts it live as a serverless container in your own Scaleway and bunny.net accounts, with the same two commands as Laravel for PHP.

  • Your code
  • Laravel and packages
  • PHP extensions
  • PHP
  • FrankenPHP
A Laravel for PHP container
73 MB One binary
  • Your code
  • The framework
  • The web server
Compiled into one file
A Laravel for Rust container

Measured in the first two days

Laravel released Laravel for Rust on 1 December 2026. The same day a trial application went through Brewless to Scaleway in fr-par, behind bunny.net, and the day after its queue, its schedule and its cold start were measured there. These are its figures, where a new framework usually comes with promises.

The whole application
73 MB
One binary that holds your code, the framework and the web server.
The base image under it
11 MB
Compressed. The C library, certificates and time zones: no shell, no package manager.
Process start to the first 200
About 150 ms
On the health route, in Docker on the same image. Four runs: 167, 159, 146 and 155 ms.
Memory at rest, in Docker
26 MB
The starter application on a laptop, in Docker on the same image. After 200 requests that read the database it held 53 MB.
Memory on Scaleway
84 MB
Resident memory of the trial application's own process in the web container, read inside the container. In the worker container it was about 80 MB.
A public page, from the edge
46–65 ms
Answered by bunny.net, four requests from our office in the Netherlands. The container was not asked.
Cold start from zero, on Scaleway
2.3 s
One measurement: a request through bunny.net to the sleeping web container was answered after 2.31 seconds, the start of the container included. The next two took 1.47 and 0.12 seconds.
A queued job, from dispatch to run
0.8–1.5 s
Three jobs on Scaleway Queues ran 0.8, 1.5 and 1.4 seconds after they were dispatched. The queue delivered each one to the worker as it arrived.
Calls to the worker without work
0
With an hourly task, nothing called the worker between its last job at 23:25 UTC and the cron at 00:00:03 UTC, so it could sleep.

Measured on 1 and 2 December 2026, on one trial application with 512 MB of memory and 0.5 vCPU in fr-par. The cold start is one measurement, from our office in the Netherlands: read it as one observation. The 26 MB and the 150 ms come from Docker on a laptop, on the same image the container runs. Your application compiles its own crates and does its own work, so your figures will differ.

One binary where a runtime used to be

A Laravel for PHP container carries a web server, PHP and its extensions under your code. A Laravel for Rust container carries your binary on an image with the C library, certificates and time zones, and nothing else: no shell and no package manager.

Per container Laravel for PHP Laravel for Rust
Base image, compressed 239 MB 11 MB
What the base image holds FrankenPHP with PHP and its extensions The C library, certificates and time zones
What runs FrankenPHP, PHP and your code One binary of 73 MB
What a build does Installs your Composer packages Compiles your application

Base image sizes are compressed, as the registry stores them. The binary of 73 MB is the trial application, uncompressed.

Compiling takes minutes. The cache gives most of them back.

Rust compiles everything your application uses, and that takes longer than a Composer install. Brewless keeps Cargo's work between deploys, so only the first build pays the full price.

First deploy, nothing cached
465 s
Second deploy, with the cache
125 s

The second deploy, step by step

  1. Source in your project 4 s
  2. Image built and pushed 125 s
  3. Release commands 11 s
  4. Web container live and healthy 22 s
Bars drawn to scale, in seconds
Second deploy, trial application
$ brewless deploy test
  Deploying rust-proef to test at commit b0f3…
  ✓ Source in your project   4s
  ✓ Image built and pushed 125s
  ✓ Release commands  11s
  ✓ Web container live and healthy  22s
  ✓ Edge settings checked
  ✓ Built files served from your storage zone
  Release 2 is live.

Built in your own project

The build runs as a Serverless Job in your own Scaleway project, with 4 vCPU and 8 GB of memory.

One object in your bucket

Cargo's work is kept as one object of 431 MB in your own bucket, and the next build starts from it.

A link, never a key

The build job gets a link to that one object. It never holds a key to your bucket.

Live in about 3 minutes

The whole second deploy, from the command to a healthy container, took about 3 minutes.

Measured on 1 December 2026 on the trial application. A third deploy with the cache took 108 seconds. A later first build without a cache, with the sqs and s3 features of the crate and the AWS SDK crates they compile, took about 19 minutes from the start of the build to the release command; the build after it, with the cache, took 158 seconds. How long your build takes depends on the crates your application compiles.

One crate, two lines, two commands

A Laravel for Rust project needs the Brewless crate and two lines of code. After that the flow is the one you know from Laravel for PHP.

  1. Add the crate

    brewless-laravel is the Cargo counterpart of the Composer package brewless/laravel. Version 0.3 is on crates.io.

    Terminal
    $ cargo add brewless-laravel
  2. Write the two lines

    Rust has no auto-discovery, so the provider is registered by hand in src/app.rs. In src/main.rs the application starts through the crate, which makes its URLs follow your own domain behind the edge.

    Rust
    // src/app.rs
    .with_providers(|providers| {
        providers.add(brewless_laravel::BrewlessServiceProvider);
    })
    
    // src/main.rs
    brewless_laravel::run(app::configure())
  3. Let Brewless read the project

    brewless init recognises a Laravel for Rust project from its Cargo.toml and writes brewless.yml. The file has a framework line and no PHP version.

    brewless.yml
    organisation: acme
    application: shop
    framework: laravel-rust
    
    release:
      - 'migrate --force'
    
    environments:
      production:
        edge:
          cache: 1h
  4. Deploy

    One command builds the binary, runs the release command and puts the release live once the container is healthy.

    Terminal
    $ brewless deploy production

Everything around the binary stays the same

Brewless works around the container, and that work does not care which language is inside it.

  1. A visitor asks for a public page
  2. bunny.net your account · cdn-cache: HIT
  3. Your binary a Scaleway container, your account
  4. Serverless SQL one DATABASE_URL, over TLS
Brewless builds and releases the binary, and is never a hop in this path.

The same two commands

brewless init writes framework: laravel-rust in brewless.yml, and brewless deploy production builds, migrates and goes live. The console shows the release like any other.

Your own accounts

The container, the database and the bucket live in your Scaleway account and the edge in your bunny.net account. Both bill you directly.

The database

Scaleway Serverless SQL over TLS, handed to the application as one DATABASE_URL. Migrations are compiled into the binary and run as the release command migrate --force before a release goes live.

The edge

A public page without a cookie gets s-maxage. On the trial application the second request for it came from bunny.net, with cdn-cache: HIT.

Jobs as they arrive

The crate signs every job your application puts on Scaleway Queues. The queue delivers each one to the worker as it arrives, and the crate checks the signature and runs that one job. A failing job ended in the failed jobs, and the console put it back.

A schedule that lets the worker sleep

A Scaleway cron calls the worker only at the moments your schedule has work, in UTC. A task set to every minute ran 0.2 to 0.3 seconds after each minute; set to hourly, it ran at 23:00 and not at 23:01 or 23:02.

Files in your bucket

The s3 disk of the framework wrote and read an object in the bucket, and a temporary URL answered at Scaleway. The framework writes every file private, so a file for everybody is made public with one call to the crate, after which bunny.net served it from the files address.

Mail

The crate adds an smtp mailer that reads the same variables as Laravel for PHP. A mail sent through it, signed in over STARTTLS on port 587, was accepted by Scaleway Transactional Email and showed on the Mail page of the console.

Private origin, Shield and secrets

Private origin and Shield are set in the same brewless.yml and work as they do in front of a PHP application. Secrets stay in your own Secret Manager, and every change lands in the same audit trail.

What is different

Six things you should know before the first deploy.

Builds take longer

Compiling takes longer than a Composer install: 465 seconds for the first build of the trial application, 125 for the second, and 389 for one that added dependencies. A first build grows with what the application compiles: with the AWS SDK crates of the sqs and s3 features it took about 19 minutes, and 158 seconds once they were in the cache.

brewless command, not tinker

brewless tinker runs PHP, so it has nothing to run here. brewless command runs your application's own console commands.

Migrations only go forward

The framework has no rollback command for migrations. A change you want to undo is a new migration.

The CLI is still PHP

The Brewless CLI is a PHP program, so the machine that deploys needs PHP 8.4. Your application and its container do not.

Patches cover the image under the binary

Security fixes of the base image under your binary are put under the live release by themselves, without compiling. A fix in a crate you compiled in, or in Rust's standard library, is in the binary and needs a deploy.

A beta framework

Laravel for Rust is at version 0.x and its API may change before 1.0. The brewless-laravel crate follows it release by release.

In every plan, at the same price.

Laravel for Rust is part of every Brewless plan, next to Laravel for PHP. Deploy one application and read your own figures.

Start free

Questions

Does Brewless support Laravel for Rust?
Yes, since 1 December 2026, the day Laravel released it. brewless init recognises a Laravel for Rust project from its Cargo.toml and writes the framework line in brewless.yml, and brewless deploy production builds the binary, runs the migrations and puts the release live. The support is in beta, like the framework itself.
How long does a build take?
On our trial application the first build took 465 seconds and the second 125 seconds, because Cargo's work is kept in your own bucket between deploys. The whole second deploy was live about 3 minutes after the command. That is longer than a Composer install, and your own time depends on the crates your application compiles.
Do queues, scheduled tasks, files and mail work?
Yes, with version 0.3 of the brewless-laravel crate, and each was used on Scaleway. Jobs on Scaleway Queues are signed and delivered to the worker as they arrive, a Scaleway cron runs the schedule in UTC, and the s3 disk of the framework reads and writes your bucket. A mail sent through the crate's smtp mailer was accepted by Scaleway Transactional Email.
How long does a cold start take?
We measured it once. On 2 December 2026 a request through bunny.net to the sleeping web container of our trial application was answered after 2.31 seconds, and the next two after 1.47 and 0.12 seconds. That is one measurement on one application with 512 MB and 0.5 vCPU, so your own figure will differ.
Do I need PHP?
Not in your application or its container: brewless.yml has no PHP version, and the container holds your binary on a base image without a shell. The Brewless CLI is still a PHP program, so the machine that deploys needs PHP 8.4.
Is it production ready?
Laravel for Rust is a beta at version 0.x, and its API may change before 1.0. Brewless follows it release by release with the brewless-laravel crate, and the deploy path around the binary is the one PHP applications already use. Whether a beta framework fits your application is your call; the figures on this page are there to help you make it.
What does it cost?
Nothing extra. Every Brewless plan includes Laravel for Rust at the same price as Laravel for PHP. Scaleway and bunny.net bill you directly for what your application uses.

Read more