Learn Rust by writing real code

From your first cargo run to async HTTP: ownership, borrowing, enums, traits and real programs, one step at a time.

Each chapter explains one idea, shows a worked example and then asks you to write and run your own Rust code in the browser, with tests that check your answer.

Anyone can read the chapter list. The chapters themselves are part of licode Club.

Rust chapters

  1. Hello, Cargo
  2. Variables & Mutability
  3. Data Types
  4. Functions
  5. Conditions & Loops
  6. Ownership
  7. Borrowing & References
  8. Strings & Slices
  9. Structs
  10. Enums & Pattern Matching
  11. Collections
  12. Error Handling
  13. Traits & Generics
  14. Command-line Args & Files
  15. Async Rust & HTTP
  16. Iterators & Closures
  17. Lifetimes
  18. Smart Pointers
  19. Threads & Shared State
  20. Modules & Project Structure
  21. Testing in Rust
  22. Debugging & Reading Rust Codebases
  23. Performance & Profiling
  24. Capstone: A Production-Grade CLI