I always thought this roguelike tutorial sounded fun. But it's probably pretty far out of date, not sure how much that matters.
I always like "by example"s for learning languages - here's Rust's.
I'd probably make a project with it. Maybe a CLI tool using clap_derive and some crate that does something neat that you want to do. Depends what you're interested in I guess.
I wouldn't recommend trying to do leetcode problems with Rust because they are obsessed with linked lists and linked lists are awkward in Rust.
Also I wouldn't recommend making a game or GUI app with Rust yet since the ecosystems there are immature.
A microcontroller project using Embassy is probably a fun way to learn too but I haven't actually tried it yet.
(edit: I see I missed the part about being fun, but I don't know of better alternatives)
I learnt with the one on the main site, "the Rust book" which is good for explaining concepts and is (or certainly was) considered the standard textbook.
Rust by Example is good for a quick start in how to do various things, but imho is most valuable for experienced programmers and as a cheatsheet-style reference.
Once you start writing your own code, it's useful to look at Blessed.rs to show what are the fairly standard options for basic libraries for logging, http, etc that you might have expected to be in the standard library. It's useful to be pointed at something that's good enough instead of spending hours investigating the various competing crates.
@anything_but_windows I usually like to mix my learning experience with an interesting toy project (https://github.com/codecrafters-io/build-your-own-x) along with the material suggested here
I read the Google book a while back and it seemed decent: https://google.github.io/comprehensive-rust/
I didn't like "The Rust Book" because it seemed too slow and patronizing, but that's probably just me.
You might also be interested in Ada or Haskell as a way to widen your perspective from C.
Rust
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
Credits
- The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)