On this page
Laravel Rust compiles your whole app into one program. That is cheap to run. The hard part is the build: the first compile takes minutes and needs far more memory than the app does.
Short answer: Laravel Rust runs on an InstaPods Build pod, $7/mo for 2 vCPU and 2 GB of memory. The first deploy of the starter app from GitHub took 4 min 54 s and the repeat deploy 12.9 s. On an earlier pod, the running app used 38 MB of memory. Rust on InstaPods is in Beta.
Not just Laravel. The InstaPods preset is called Rust, and it runs any Rust web app that builds with cargo, has Cargo.toml at the top level and listens on 0.0.0.0:8080. Laravel Rust gets extra setup on top: its .env, key, database and migrations. There is a plain Axum example below.
Laravel Rust is in beta too. Laravel released it on 1 December 2026. It is a new framework built on Axum and Tokio. It does not run your existing PHP app.

Pod Planner, a small Laravel Rust task board, live on our test pod on 2 December 2026. Its footer reports 51 MB of memory. The 38 MB above is the unmodified starter app, which ran on the same pod first.
Pod Planner runs on Axum 0.8.9 and Tokio 1.54.1. It uses Laravel Rust’s routing, route model binding, typed validation, typed models, sessions and queues. Its “Build report” button puts a job in the queue, and a background worker writes the summary.
The numbers we measured
All of these are from 2 December 2026. The Laravel app is laravel/rust at commit af5a71e6. These come from a normal public pod on the Build plan (2 vCPU, 2 GB, EU server):
| What | Laravel Rust from GitHub | Small Axum app |
|---|---|---|
| First deploy | 4 min 54 s | 34.9 s with the CLI |
| Next deploy | 12.9 s (same commit) | 7 s with MCP |
| Code that does not compile | not tested | refused in 2 s, old page stayed up |
- The 4 min 54 s includes installing PostgreSQL. The home page,
/upand the built CSS and JS files all answered 200. - The 34.9 s was 16.9 s to create the pod, 1.4 s to upload and 15.7 s to build and restart.
Memory and program size come from an earlier pod on the same plan, which we set up by hand:
| Laravel Rust starter, hand-made pod | Result |
|---|---|
| Memory in use | 38 MB |
| Program size | 70 MB |
| First compile | 5 min 30 s, without running out of its 2 GB |
| Rebuild after a one-line change | 11 s |
We also ran the same deploy code on a slower test server with 2 CPU and 2 GB. There the first Laravel deploy took 8 min 29 s in one run and 9 min 29 s in another, and memory in use was 26 MB. So plan for 5 to 10 minutes.
Our test pod answers the health check from the public internet:
$ curl -sI https://laravel-rust-test.instapods.app/up | head -1
HTTP/2 200
We did not test under load, and we did not compare Rust with PHP or Node on our own pods.
Why Rust: what Laravel measured
Laravel published its own benchmark on Laravel Cloud, with bigger servers than ours and a small read-only API. These are Laravel’s numbers, not ours:
| Laravel’s test | Laravel Rust | Laravel PHP |
|---|---|---|
| Best 10 seconds | 1,774 requests/s | 97 requests/s |
| Peak memory at 50 requests/s | 16M | 134M |
| Median first build | 3 min 1 s | 27 s |
So in Laravel’s test, Rust answered more requests and used less memory, and PHP built much faster. Laravel says more complex apps will give different results.
Deploy Laravel Rust with the CLI
The InstaPods CLI can deploy a GitHub repo or a folder on your computer. Install it and log in:
curl -fsSL https://instapods.com/install.sh | sh
instapods login
From a GitHub repo. Laravel Rust’s numbers above come from a deploy from GitHub:
instapods deploy --repo https://github.com/you/my-rust-app --preset rust --plan build
From a folder. Run this where your Cargo.toml is:
instapods deploy my-rust-app --preset rust --plan build

Real output of a small Axum app, deployed from a folder with CLI v1.19.0. This run took 37.7 s. We deleted the pod afterwards.
Each deploy builds the front end, runs cargo build --release, swaps in the new program and restarts the app. Compiled parts are kept between deploys, so only the first build is slow.
What gets set up for you
When your app depends on the laravel-rust crate, each deploy handles the server settings:
| Setting | What InstaPods does |
|---|---|
SERVER_HOST, SERVER_PORT | Always 0.0.0.0 and 8080 |
APP_ENV, APP_DEBUG, APP_URL | Set to production, false and your pod’s URL, unless you set them |
APP_KEY | Generated once, then kept |
DATABASE_URL | Points at your pod’s database, unless you set it |
| Database | Installed on the first deploy if Cargo.toml turns on Postgres or MySQL |
| Migrations | migrate --force runs after each build |
If a migration fails, the deploy fails and the old program keeps running.
Deploy any Rust app: a plain Axum example
You don’t need Laravel. This is the whole app in our CLI screenshot above. Cargo.toml:
[package]
name = "hello"
version = "0.1.0"
edition = "2024"
[dependencies]
axum = "0.8"
tokio = { version = "1", features = ["full"] }
src/main.rs:
use axum::{Router, routing::get};
#[tokio::main]
async fn main() {
let port = std::env::var("PORT").unwrap_or_else(|_| "8080".into());
let app = Router::new().route("/", get(|| async { "Hello from InstaPods!" }));
let listener = tokio::net::TcpListener::bind(format!("0.0.0.0:{port}")).await.unwrap();
axum::serve(listener, app).await.unwrap();
}
Deploy it from that folder:
instapods deploy my-rust-app --preset rust --plan build
| Framework | Status on InstaPods |
|---|---|
| Axum | Tested on a real public pod |
| Laravel Rust | Tested on a real public pod, with extra setup |
| Actix Web | Supported, not yet tested on a real pod |
| Rocket | Supported, not yet tested on a real pod |
Deploy Rust from Claude or Cursor with MCP
MCP lets an AI assistant deploy for you. Add the InstaPods server once. In Claude Code:
claude mcp add --transport http instapods https://app.instapods.com/api/mcp
Run /mcp to sign in, then ask:
“Deploy this Rust app to InstaPods on the Build plan and give me the URL.”
- The assistant calls
deploy_podwith your files. ACargo.tomlat the top level selects Rust. - If the build takes longer than 45 seconds, the answer is
building. The compile carries on. - The assistant waits, then checks again with
manage_podand thereloadaction.

Real deploy_pod call to the same pod and its answer, shortened to the main fields. We sent it to the MCP server directly. It took 6.6 s because the pod already had the compiled parts.
Know this limit: deploy_pod takes up to 50 files and 2 MiB. The unmodified laravel/rust repo has 65 files, so deploy the full starter with the CLI or from GitHub. MCP suits smaller Rust projects, like the Axum app here.
For other clients, see which hosting platforms let AI agents deploy.
Why InstaPods for Rust
- One flat price. $7/mo covers the app and its database, on the Build plan.
- The build fits. Build has 2 GB, and the Laravel Rust starter compiled in it. The app then used 38 MB.
- A bad commit does not take you down. A failed compile or migration leaves the old version running.
- A real Linux server. You get SSH, so you can install a system library, read logs or run
cargoyourself. - Your database is on the pod. PostgreSQL, MySQL and Redis are the managed options.
Limits
- Beta. Expect rough edges.
- Build plan or higher. Rust is blocked on the $3 Launch plan, which has 512 MB.
Cargo.tomlmust be at the top of the repo.- The scheduler is not started for you. A queue worker is: it runs your queued jobs and restarts when the app does. For scheduled tasks, run
schedule:workyourself as a systemd service. - A custom domain needs
APP_URLchanged. Laravel Rust answers 400 Bad Request to any other domain. SetAPP_URLto yours and reload the pod. - System libraries. Crates that need one other than OpenSSL will not build until you install it on the pod with
apt-get. - The first build is slow. Plan for 5 to 10 minutes with Laravel Rust.
Full details are in the Rust preset docs.
You need a card to deploy, and adding one gives a one-time $10 credit.
Deploy your Rust app → - $7/mo on the Build plan, in Beta.