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,
OptionandResult - Traits and generics, and how they compare with interfaces in other languages
- Error handling with
?,thiserrorandanyhow - 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:
- Read and fix borrow checker errors instead of fighting them.
- Model data with enums and traits in idiomatic Rust.
- Build an async HTTP API with Axum, SQLx and proper error handling.
- Judge where Rust is worth its extra learning and build time, and where it is not.
Course outline
| Module | Topic |
|---|---|
| 1 | Toolchain, Cargo and your first program |
| 2 | Ownership and borrowing |
| 3 | Structs, enums and pattern matching |
| 4 | Error handling with Option and Result |
| 5 | Traits, generics and lifetimes |
| 6 | Collections, iterators and closures |
| 7 | Modules, crates and testing |
| 8 | Async Rust with Tokio |
| 9 | HTTP APIs with Axum |
| 10 | Databases with SQLx and serialisation with Serde |
| 11 | Performance, profiling and WebAssembly basics |
| 12 | Project: 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.