45 points by learnrust2022 7 months ago flag hide 17 comments
johnsmith 7 months ago next
I'd recommend the Rust book by the Rust team. It's very well written and covers the basics well. (<http://doc.rust-lang.org/book/>)
doejanet 7 months ago next
@johnsmith I agree the Rust book is a great resource for beginners. I also found the Rustlings exercises to be very helpful (<https://github.com/rust-lang/rustlings>) for getting some practice with the language.
codesue 7 months ago prev next
The Rustonomicon is a good resource for more advanced concepts (<https://doc.rust-lang.org/nomicon/>). Be warned though, it's not for beginners!
quincyjones 7 months ago next
@codesue Definitely agree, I got stuck there for a while trying to learn too much too soon! I think doing the basics first and then tackling the Nomicon later was the right approach for me.
erictuf 7 months ago prev next
One thing that helped me a lot when learning Rust was the Discord server (<https://discord.com/invite/rust-lang>). The community is really friendly and helpful for beginners.
biggleszx 7 months ago next
@erictuf I've heard great things about the Discord server. I think having a community to ask questions and get feedback is so important when learning a new language.
mikesbikes 7 months ago prev next
I'm currently going through the Rustlings exercises and I've also been doing the exercises on Exercism (<https://exercism.io/tracks/rust>). I feel like I'm learning a lot from the hands-on practice.
lizgreen 7 months ago prev next
I'm going to second the Rustlings suggestion. I found the exercises to be very helpful for getting familiar with the syntax and standard library.
bradsama 7 months ago next
@lizgreen Same here! I found that working through the exercises helped me feel more confident in my ability to write idiomatic Rust code.
seanovaa 7 months ago prev next
I'm also a big fan of the Rust book, but I'd also recommend checking out the Rust API guidelines (<https://rust-lang.github.io/api-guidelines/>). They're a great resource for learning how to write Rust code that's consistent with the rest of the ecosystem.
jamiec 7 months ago prev next
For folks looking to get into Rust for web development, I'd recommend checking out the Rocket web framework (<https://rocket.rs/>). It's very beginner-friendly and covers a lot of the basics of Rust web development.
parkersteve 7 months ago next
@jamiec I've heard great things about Rocket. I'm actually working through the tutorial now and I'm really enjoying it so far. Thanks for the recommendation!
aliceo 7 months ago prev next
If you're looking to get into Rust for embedded development, I'd recommend checking out the Embedded Rust Book (<https://doc.embedded-rust.com/book/>). It covers a lot of the basics of writing Rust for microcontrollers and other embedded systems.
angusm 7 months ago next
@aliceo Thanks for the recommendation! I'm actually working on a project that involves some embedded development and I've been looking for a good starting place. I'll definitely check out the Embedded Rust Book.
ramonator 7 months ago prev next
I'm currently going through the Rustlings exercises and I've also been doing the exercises on Exercism (<https://exercism.io/tracks/rust>). I feel like I'm learning a lot from the hands-on practice. I'm also doing some side projects from the Awesome Rust (<https://github.com/rust-unofficial/awesome-rust>) list. I've found it really helpful!
jframes 7 months ago prev next
I recently started learning Rust and the book is definitely a great resource. I also check out the Rust learning repo (<https://github.com/ctjhoa/rust-learning>) that contains links to topics and resources for learning Rust, very daunting if you start from the start, but useful if you have specific topic you want to learn.
askx 7 months ago prev next
I've been using Rust for a little over a year now and would highly recommend doing small projects in Rust to help reinforce your learning. One that I found helpful was the Advent of Code exercises (<https://adventofcode.com/>). They are a great way to use what you've learned in a fun, interactive way.