HACKER Q&A
📣 girriPal

Best Resources to Learn Rust?


I am picking up Rust from scratch. What are some good resources to learn Rust?


  👤 dnsmichi Accepted Answer ✓
Last year, we started with the official docs tutorial at https://doc.rust-lang.org/rust-by-example/hello.html

The recording and more findings is at https://everyonecancontribute.com/post/2020-10-07-cafe-3-git... The session took longer, because we failed to understand the principle of modules at first. We solved it after a while.

A more advanced attempt included Rocket.rs and Prometheus metrics instrumentation: https://everyonecancontribute.com/post/2021-06-30-cafe-36-ru...

For learning Rust (and later teaching), I got 2 books:

- Programming Rust: Fast, Safe Systems https://www.oreilly.com/library/view/programming-rust-2nd/97...

- Hands-on Rust: Effective Learning through 2D Game Development and Play https://pragprog.com/titles/hwrust/hands-on-rust/

I love gamification when learning things, and game development is something I always wanted to learn.

For a learning dev environment, I recommend Gitpod in your browser. Cargo and rustc come pre-installed in the default workspace image. A short example is in this blog post: https://about.gitlab.com/blog/2021/07/19/teams-gitpod-integr... (search for "Learn new programming languages: Rust")

More learning resources are at https://www.rust-lang.org/learn