Rust gives you the speed of C++ with memory safety enforced by the compiler, and it is increasingly used for high-performance services, developer tooling and WebAssembly. It also has a reputation for a steep learning curve. This course is written for developers who already know JavaScript, Python, PHP or Go, and explains Rust's ideas in terms of the web problems you already understand.

What you'll learn

  • Cargo, crates, project layout and the tools around Rust: rustfmt, Clippy and rust-analyzer
  • Ownership, borrowing and lifetimes, explained with practical examples rather than theory alone
  • Structs, enums, pattern matching, Option and Result
  • Traits and generics, and how they compare with interfaces in other languages
  • Error handling with ?, thiserror and anyhow
  • Collections, iterators and closures
  • Async Rust with Tokio: futures, tasks, channels and shared state
  • Building HTTP APIs with Axum: routing, extractors, middleware and state
  • Database access with SQLx and JSON with Serde
  • Testing, benchmarking and an introduction to compiling Rust to WebAssembly

Who it's for

  • Backend developers who want a faster, safer language for performance-critical services
  • JavaScript and TypeScript developers curious about the Rust tooling behind modern bundlers and linters
  • Engineers evaluating Rust for a specific project and wanting an honest view of the trade-offs

Prerequisites

  • Solid experience in at least one programming language
  • Experience building or consuming HTTP APIs (see REST and GraphQL API Design)
  • Rust installed with rustup

Outcomes

By the end of this course you will be able to:

  1. Read and fix borrow checker errors instead of fighting them.
  2. Model data with enums and traits in idiomatic Rust.
  3. Build an async HTTP API with Axum, SQLx and proper error handling.
  4. Judge where Rust is worth its extra learning and build time, and where it is not.

Course outline

ModuleTopic
1Toolchain, Cargo and your first program
2Ownership and borrowing
3Structs, enums and pattern matching
4Error handling with Option and Result
5Traits, generics and lifetimes
6Collections, iterators and closures
7Modules, crates and testing
8Async Rust with Tokio
9HTTP APIs with Axum
10Databases with SQLx and serialisation with Serde
11Performance, profiling and WebAssembly basics
12Project: a production-style Rust web service

FAQ

Is Rust a good first language?

Usually not. It is easier to learn once you understand programming in another language, which is why this course is marked Advanced.

Should I rewrite my existing backend in Rust?

Rarely. We discuss when Rust pays off, such as CPU-heavy or latency-sensitive services, and when a language like Go or TypeScript is the better choice.

Which web framework do you use?

Axum, built on Tokio, because it is widely used and well maintained. The concepts transfer to other Rust frameworks.

How do I join?

Get in touch and we'll share the current format, schedule and enrolment details.