What is the best way to learn Rust
Writing code.
Make it compile successfully.
If you are entirely new, the official online book is a good starting point:
Then I would do the rustlings course to train some of the basics of the syntax:
Then, go do a simple project of your own choice. Maybe a simple cli program that you want, something like that.
(Given what little info on your background you have provided that is my suggestion. There are also other materials specifically aimed at C programmers, JavaScript programmers, etc)
There is the book (the rust programming language), and also Google's one seems popular:
I am not sure whether it is good. It seems more like a mix with exercises and talks, but may be worth a look.
The best way to learn Rust rather depends on who you are. Do you have any previous programming experience? If so in what programming languages and what kind of programs?
As a long time programmer using languages like C, C++ and the like one of the hardest things about learning Rust is the language people use to describe and talk about it. There are lots of terms like "sum and product types", "variance, covariance" even "monad", expressions I was not used to hearing. I can only imagine those coming to Rust from a Functional Programming background feel quit at home with all that.
Anyway, study the Rust Book, linked above.
Start writing Rust. I think it's good to write lots of little experiments trying out what you think you have just learned.
Do experiment with those experiments. See what happens when you try to change them to do slightly different things. See what happens when you deliberately break them. It's very useful to get used to the error messages the compiler produces. They can be very helpful.
And of course, write Rust code. Perhaps have some little first project in mind.
Of course it's alway useful to have someone who is fluent in Rust around to ask questions and discuss problems with, as it is when learning any thing. Likely you do not so here is a good place to come with any questions. I'm sure someone will pop up to help.
Controversially perhaps I might suggest also using AI to help you. It's amazing the corners of Rust I have learned from asking my AI friend how to do something or explain some obscure looking Rust I found somewhere. Things that I would never have thought of or never have found in the documentation. Of course that is a bit of trap, one may end up AI dependent and never learn anything. Like relying on your best friend to do your homework.
Finally, there are some good online courses that will test your Rust understanding. I did this one Aalto FITech101 Courses
Eust seems like a good name for a EU-(or Europe)-based fork
Ha! Well spotted. Nice to know somebody reads my ramblings here ![]()