1-Click apps Deploy your code Pricing Guides Docs Support Log in Deploy an app

How to deploy Laravel Rust on InstaPods, with the numbers we measured

We ran the Laravel Rust starter on a $7/mo server: first deploy 4 min 54 s, repeat 12.9 s, 38 MB of memory. How to do it with the CLI or MCP.

Dec 2, 2026 7 min readTutorial

On this page
  1. The numbers we measured
  2. Why Rust: what Laravel measured
  3. Deploy Laravel Rust with the CLI
  4. What gets set up for you
  5. Deploy any Rust app: a plain Axum example
  6. Deploy Rust from Claude or Cursor with MCP
  7. Why InstaPods for Rust
  8. Limits

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.

The Pod Planner task board, a Laravel Rust app on an InstaPods pod. The footer shows 51 MB of app memory, 34 minutes of uptime and Laravel Rust 0.1.4

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):

WhatLaravel Rust from GitHubSmall Axum app
First deploy4 min 54 s34.9 s with the CLI
Next deploy12.9 s (same commit)7 s with MCP
Code that does not compilenot testedrefused in 2 s, old page stayed up
  • The 4 min 54 s includes installing PostgreSQL. The home page, /up and 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 podResult
Memory in use38 MB
Program size70 MB
First compile5 min 30 s, without running out of its 2 GB
Rebuild after a one-line change11 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 testLaravel RustLaravel PHP
Best 10 seconds1,774 requests/s97 requests/s
Peak memory at 50 requests/s16M134M
Median first build3 min 1 s27 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

Terminal output of instapods deploy rust-demo --preset rust --plan build: create pod 17.2 s, upload 2.3 s, reload 17.4 s, deployed in 37.7 s

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:

SettingWhat InstaPods does
SERVER_HOST, SERVER_PORTAlways 0.0.0.0 and 8080
APP_ENV, APP_DEBUG, APP_URLSet to production, false and your pod’s URL, unless you set them
APP_KEYGenerated once, then kept
DATABASE_URLPoints at your pod’s database, unless you set it
DatabaseInstalled on the first deploy if Cargo.toml turns on Postgres or MySQL
Migrationsmigrate --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
FrameworkStatus on InstaPods
AxumTested on a real public pod
Laravel RustTested on a real public pod, with extra setup
Actix WebSupported, not yet tested on a real pod
RocketSupported, 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.”

  1. The assistant calls deploy_pod with your files. A Cargo.toml at the top level selects Rust.
  2. If the build takes longer than 45 seconds, the answer is building. The compile carries on.
  3. The assistant waits, then checks again with manage_pod and the reload action.

The deploy_pod tool call with two files, and its result after 6.6 s: public true, preset rust, plan build, service active

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 cargo yourself.
  • 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.toml must 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:work yourself as a systemd service.
  • A custom domain needs APP_URL changed. Laravel Rust answers 400 Bad Request to any other domain. Set APP_URL to 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.

Keep reading

  1. How to Migrate From Railway: App, Postgres and Env VarsMoving off Railway? Step by step: export your variables, dump Postgres, redeploy from GitHub, move your domain, and rotate every secret on the way out.9 min
  2. How to Back Up n8n Workflows and Credentials (2026 Guide)Back up self-hosted n8n properly: export workflows and credentials, save the encryption key, and know which of the three methods actually restores.9 min
  3. n8n Error Workflow Not Triggering? Here Is WhyYour n8n error workflow is set but never fires. The cause is almost always one of four documented behaviours - including that it cannot fire on a manual run.7 min