All lessons

Two parts, one path. Start at lesson 1 or jump to any topic. 35 lessons · about 6 h 55 min of reading.

0 / 35 complete

Start hereWhat is Rust?

Part 1

Rust

Install the tools, write your first program and build real intuition for ownership, types and errors. No prior Rust needed.

Rust Basics7 lessons · 1 h 17 min · 0 done

  1. What is Rust?8 min · Meet Rust: what a programming language is, why Rust is fast and safe, who uses it, and how this course takes you from zero to Laravel Rust.Start here →
  2. Installing Rust9 min · Install Rust with rustup on macOS, Linux or Windows, check it works, set up VS Code with rust-analyzer, or try Rust in your browser.Start →
  3. Hello World with Cargo10 min · Create your first Rust project with Cargo, explore its files, run it, and print the Rusty Bean Café welcome sign with println!.Start →
  4. Variables and Mutability11 min · Name your values with let, allow changes with mut, set fixed rules with const, and reuse names with shadowing, all at Rusty Bean Café.Start →
  5. Data Types13 min · Learn Rust's basic data types (integers, floats, booleans, characters, text, tuples and arrays) by modelling the Rusty Bean Café menu.Start →
  6. Functions12 min · Write your own Rust functions with parameters and return values, and learn the difference between expressions and statements.Start →
  7. Control Flow14 min · Make decisions with if and else, repeat work with loop, while and for, count with ranges, and get a first taste of match.Start →

Core Rust Concepts7 lessons · 1 h 32 min · 0 done

  1. Ownership14 min · Learn Rust's big idea, ownership, through café analogies: stack vs heap, the three rules, moves, and clone, explained gently.Start →
  2. Borrowing and References13 min · Lend values without giving them away: learn & and &mut, the two borrowing rules, and how to read borrow-checker errors calmly.Start →
  3. Structs12 min · Group related data into your own types with structs, then give them behaviour with impl blocks, methods, and a new() constructor.Start →
  4. Enums and Match12 min · Model 'one of several choices' with enums, attach data to each choice, and handle every case safely with match and if let.Start →
  5. Option and Result13 min · Rust has no null. Learn Option for 'maybe a value' and Result for 'it worked or it failed', plus why unwrap and expect are risky.Start →
  6. Collections: Vec, HashMap and String14 min · Store many values with Vec, look things up by key with HashMap, understand String vs &str, and loop over them all with for.Start →
  7. Error Handling with the ? Operator14 min · Pass errors along cleanly with the ? operator, design your own error enum, and let main return a Result in your café ordering code.Start →

Rust for the Web5 lessons · 51 min · 0 done

  1. Traits and Generics14 min · Learn how traits describe shared behaviour, how generics let one function work with many types, and how From, Into and Display fit in.Start →
  2. Closures and Iterators9 min · Use closures and iterator chains (map, filter, collect, sum) to turn lists of café orders into totals and menus, the way web code does.Start →
  3. Modules and Crates9 min · Organise Rust code into modules and files, control what is public with pub, and add outside crates like serde through Cargo.toml.Start →
  4. Macros and Attributes9 min · Understand what println!, vec! and #[derive] really are, learn the three kinds of macros, and read #[...] lines with confidence.Start →
  5. Async, Await and Tokio10 min · Learn why web servers use async Rust, how async fn and .await work, and how Tokio runs many tasks at once with join! and spawn.Start →

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.

Meet Laravel Rust5 lessons · 49 min · 0 done

  1. What is Laravel Rust?9 min · Meet Laravel Rust: a batteries-included web framework that brings Laravel's friendly conventions to fast, async, compile-checked Rust.Start →
  2. Creating your first Laravel Rust app10 min · Install the Laravel CLI, create the Rusty Bean Café app, set up a database and see it running in your browser.Start →
  3. A tour of the project structure9 min · Walk through every folder of a new Laravel Rust app (routes, handlers, models, migrations and more) and learn where café code belongs.Start →
  4. Routing and handlers11 min · Point URLs at code: write routes with closures, move them into handler modules, return text and JSON, and read route parameters.Start →
  5. Route model binding and compile-checked URLs10 min · Let Laravel load a menu item straight from the URL (or return a 404), and build links with route! and redirect! that the compiler checks.Start →

Data, Models & Forms5 lessons · 1 h 3 min · 0 done

  1. Migrations and the Schema Builder12 min · Learn what a database is, then create the Rusty Bean Café's menu and order tables with Laravel Rust migrations and the schema builder.Start →
  2. Models and Relationships12 min · Turn the café's database tables into typed Rust structs with #[model], connect them with #[belongs_to] and #[has_many], and meet enum and JSON columns.Start →
  3. Querying Models13 min · Filter the café menu with compile-checked queries, combine conditions with & | !, see the safe SQL Laravel writes, and avoid the N+1 trap with eager loading.Start →
  4. Typed Validation and Forms14 min · Accept café orders safely: describe form input as #[laravel::input] structs, add #[validate] rules, require authorization, and block mass-assignment.Start →
  5. Raw Queries with db::query!12 min · Write plain SQL for café reports with db::query!, capture Rust variables and lists safely, bulk-insert rows, and see why SQL injection can't sneak in.Start →

Beyond the Basics6 lessons · 1 h 23 min · 0 done

  1. Async Tasks and Concurrency12 min · Do several things at once in a Laravel Rust handler: task::try_join!, task::select!, spawn_blocking, background work and in-process ticks.Start →
  2. Queued Jobs13 min · Move slow or important work out of the request with queued jobs: Queueable, #[job], dispatching, drivers, Inject<T>, retries, chains and batches.Start →
  3. Durable Workflows12 min · Write multi-day processes as one async function. Learn steps, sleeping, waiting for outside events, and when workflows beat plain queued jobs.Start →
  4. Mail, Broadcasting and Inertia13 min · A beginner tour of three Laravel Rust features: typed email with Mailable, realtime updates over WebSockets, and Inertia for server-driven React pages.Start →
  5. Testing Your App13 min · Learn plain Rust #[test] first, then Laravel Rust's #[laravel::test]: send fake requests, check validation and the database, and fake queues and mail.Start →
  6. Capstone: The Rusty Bean Café Orders App20 min · Build the Rusty Bean Café ordering site end to end: menu page, validated order form, saved orders, a queued emailed receipt, background work and a test.Start →

Search lessons

Type to search all lessons.