Learn Rust.
Then build the web.
A friendly path from your very first line of code to real web apps with Laravel Rust. Short lessons, one café-sized example, zero experience needed.
$ cargo new rusty_bean- Lessons
- 35 lessons
- Reading time
- 7 h of reading
- Parts
- 2 parts
- Price
- Free, no sign-up
fn main() {
let cafe = "Rusty Bean Café";
let cups_today = 42;
println!("Welcome to {cafe}!");
println!("We served {cups_today} cups today.");
}$ cargo run
Welcome to Rusty Bean Café!
We served 42 cups today.
struct MenuItem {
name: String,
price_cents: u32,
}
fn main() {
let latte = MenuItem { name: String::from("Latte"), price_cents: 450 };
let dollars = latte.price_cents as f64 / 100.0;
println!("{} costs ${:.2}", latte.name, dollars);
}$ cargo run
Latte costs $4.50
enum Size { Small, Large }
fn price(size: Size) -> u32 {
match size {
Size::Small => 350,
Size::Large => 500,
}
}
fn main() {
println!("Small: {} · Large: {} cents", price(Size::Small), price(Size::Large));
}$ cargo run
Small: 350 · Large: 500 cents
Taught step by step · 35 lessons across two parts
- Cargo
- Variables
- Data types
- Functions
- Control flow
- Ownership
- Borrowing
- Structs
- Enums & match
- Option & Result
- Vec & HashMap
- Error handling
- Traits
- Generics
- Closures
- Iterators
- Modules & crates
- Macros
- async / await
- Tokio
- Laravel Rust
- Project structure
- Routing
- Handlers
- Route model binding
- Migrations
- Models
- Relationships
- Queries
- Typed validation
- Forms
- Raw SQL
- Async tasks
- Queued jobs
- Workflows
- Broadcasting
- Inertia
- Testing
- Capstone app
How the course works
One small idea.
Then the next one.
Every lesson is a short read with code you type yourself, a quick exercise and a recap. Ideas build on each other in a straight line, so you are never asked to use something you have not met yet.
01 Read a short lesson
Each lesson explains one idea in plain English, with everyday analogies and no jargon left unexplained.
~10 min each
02 Type the code
Small, complete examples you can run. One project grows with you: the Rusty Bean Café.
One running example
03 Try it yourself
Every lesson ends with a small exercise and a recap. Solutions stay hidden until you want them.
Solutions included
04 Track your progress
Mark lessons complete and pick up right where you left off. Saved in your browser, no sign-up.
No account needed
The curriculum
Rust first.
Then Laravel Rust.
Part 1 teaches Rust from the ground up. Part 2 puts it to work: you build the Rusty Bean Café ordering site with Laravel Rust, from the first route to queued jobs and tests.
Part 1
Rust
Install the tools, write your first program and build real intuition for ownership, types and errors. No prior Rust needed.
19 lessons · 3 h 40 min
Start Part 1Module 10/7
Rust Basics
What Rust is, installing it, Cargo, variables, types, functions and control flow.
- What is Rust?
- Installing Rust
- Hello World with Cargo
- Variables and Mutability
- Data Types
- + 2 more
7 lessons · 1 h 17 min
Module 20/7
Core Rust Concepts
Ownership, borrowing, structs, enums, Option and Result, collections and error handling.
- Ownership
- Borrowing and References
- Structs
- Enums and Match
- Option and Result
- + 2 more
7 lessons · 1 h 32 min
Module 30/5
Rust for the Web
Traits, generics, closures, iterators, modules, macros and async Rust with Tokio.
- Traits and Generics
- Closures and Iterators
- Modules and Crates
- Macros and Attributes
- Async, Await and Tokio
5 lessons · 51 min
Part 2
Laravel Rust
Use what you learned to build a full-stack web app with Laravel Rust: routes, models, forms, queues, mail and tests.
16 lessons · 3 h 15 min
Jump to Part 2Module 40/5
Meet Laravel Rust
What Laravel Rust is, creating your first app, the project layout, routing and handlers.
- What is Laravel Rust?
- Creating your first Laravel Rust app
- A tour of the project structure
- Routing and handlers
- Route model binding and compile-checked URLs
5 lessons · 49 min
Module 50/5
Data, Models & Forms
Migrations, models and relationships, queries, typed validation and raw SQL.
- Migrations and the Schema Builder
- Models and Relationships
- Querying Models
- Typed Validation and Forms
- Raw Queries with db::query!
5 lessons · 1 h 3 min
Module 60/6
Beyond the Basics
Concurrency, queued jobs, workflows, mail, broadcasting, Inertia, testing and a capstone app.
- Async Tasks and Concurrency
- Queued Jobs
- Durable Workflows
- Mail, Broadcasting and Inertia
- Testing Your App
- + 1 more
6 lessons · 1 h 23 min
Why this course
Why Rust?
Why Laravel Rust?
Rust gives you speed and safety without a garbage collector. Laravel Rust brings the joy of Laravel to that foundation. Learning both, in order, is the shortest path from beginner to shipping fast, reliable web apps.
Rust
Fast, without the fuss
Rust compiles to native code and runs as fast as C and C++, with no garbage collector pausing your app.
Safe by design
Ownership and borrowing rules stop whole families of bugs, like using memory after it is freed, before your program ever runs.
A compiler that teaches
Rust’s error messages explain what went wrong and often suggest the fix. It is like pair programming with a patient expert.
Loved by developers
Rust has been one of the most admired languages in developer surveys for years, and it powers tools you already use every day.
Laravel Rust
18×
faster than Laravel PHP, in Laravel’s own internal benchmarks on Laravel Cloud.
Laravel, reimagined in Rust
The full-stack philosophy and feature set of Laravel in idiomatic Rust, built end-to-end on Axum and Tokio.
Checked before it runs
Routes, database columns, relationships and validated form inputs are checked at compile time, so a typo becomes a compiler error instead of a bug in production.
Brand new, learn it early
The beta was announced on December 1, 2026. Learn it from day one, alongside everyone else.
Questions
Still unsure? Start with lesson 1. It takes about ten minutes and needs nothing installed.
Is FirstCrate free?
Yes. Every lesson is free to read, and there is no account to create. Your progress is saved in your own browser.
Do I need to know how to program already?
No. Part 1 starts from zero: what a programming language is, how to install Rust and how to write your first program. Every new term is explained the first time it shows up.
Do I need to know Laravel or PHP?
No. Knowing Laravel helps, but Part 2 explains each Laravel idea (routes, models, migrations, queues) as if you have never seen it before.
What do I need installed?
A computer running Windows, macOS or Linux, a code editor you like, and a terminal. The second lesson walks you through installing Rust step by step.
Laravel Rust is in beta. Is it too early to learn?
It is a great time to start. Beta means some details may still change, so Part 2 links the official documentation and sticks to what Laravel has published. Everything you learn about Rust in Part 1 carries over either way.
How is my progress saved?
In your browser’s local storage, on this device only. Clearing your browser data resets it. Nothing is sent to a server.
Your first crate,
in three steps.
One terminal, three commands, and you have a running Rust program. Lesson 2 walks you through every step, including installing Rust on Windows.
- 01
Install Rust
Use rustup, the official installer, on macOS or Linux. Windows users download rustup-init.exe instead.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh - 02
Create a project
Cargo, Rust’s build tool, sets up a new project folder for you.
cargo new rusty_bean - 03
Run it
Compile and run in one command. Rust says hello back.
cd rusty_bean && cargo run
$ cargo new rusty_bean
Creating binary (application) `rusty_bean` package
note: see more `Cargo.toml` keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
$ cd rusty_bean && cargo run
Compiling rusty_bean v0.1.0 (~/rusty_bean)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.48s
Running `target/debug/rusty_bean`
Hello, world!