Skip to content

jondot/rust-how-do-i-start

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

33 Commits
Β 
Β 

Repository files navigation

Rust πŸ¦€. How do I start?

A collaborative advice for this casual question that gets asked many times, so here it is as a Github repo anyone can contribute to and improve!

  • πŸ‘οΈ Before you start, watch this repo (Github watch button) so you can get updates when we add stuff
  • πŸ‘Ύ Play with this page first! Take an hour to look at all the stuff that's linked from top to bottom. Watch a few videos, scroll through a couple blogs. Then start with the main track.
  • πŸ‘·β€β™€οΈ While you're working your way through, feel free to ask questions about ways to start in Rust in Discussions
  • 🎊 Feel free to add suggestions and PRs of your own https://github.com/jondot/rust-how-do-i-start#contributing

🐱 What to expect?

Some hand-selected articles to give you a feeling of what's the journey like.

  • My own key learnings after 30k LOC in Rust - I can say that today the experience is much greater than back then. There's so much more to learn from, and the ecosystem is huge. Still, the core ideas in the article are relevant.

🚜 Main track

This is largely the learn path you should follow. It is hand-selected, minimal, and high-value, highly effective content only

  • πŸ“š Reading (code or text)
  • πŸ‹οΈβ€β™€οΈ Exercise
  • πŸ—οΈ Building
  1. πŸ¦€ The πŸ“šRust Book. You can read it cover to cover, or skim it. What ever you do, make sure you have a pet project idea to experiment with. You can pick πŸ“šany of the core utils you like. The advantage of just re-implementing a core util is that you are probably familiar with one of those, they're just CLI apps and you're not biting more than you can chew, and you do have the source code in that repo for reference.
  • 🎬 Feeling a bit lost? You can watch Getting Started with Rust: Understanding Rust Compile Errors, and part 2 which is a great intro to errors, borrow checker and more.
  • πŸ₯Έ If you're coming from dynamic programming languages, expect the reading process to be less "flowing" and more thinking about types and the type system. If you're stuck and want to "translate" concepts to your own dynamic world, feel free to ask here
  • 🫢 You don't have to read it cover to cover. Get to a nice, working CLI app for starters.
  • πŸ‹οΈβ€β™€οΈ If you like exercises as a learning aid, you can swap "building a small project" while reading the Rust book, with πŸ‹οΈβ€β™€οΈrustlings
  1. 🧰 Pick a hobby project that's useful for you. Something more than trivial that includes data passing and a few modules (just so you get to experience the borrow checker and data modeling) something in the scope of πŸ—οΈbat. Work on it and go back to the Rust book from time to time (as well as, well - StackOverflow). Repeat, rinse.
  • πŸ€·β€β™€οΈ Don't have an idea for a hobby project? πŸ‹οΈβ€β™€οΈPNGMe is a good project to build + it's a book and exercise format. Look at the project idea list too.
  • 🎩 Don't want to work on a project at all? the πŸ‹οΈβ€β™€οΈtoo many lists minibook will have you building linked-lists of all kinds and is quite good
  1. 🀝 Asking for feedback is highly encouraged to get better at writing idiomatic, readable and performant Rust. You can ask for feedback in the Rust Subreddit or in the Rust Programming Language Community Discord Server.
  2. πŸ“ The πŸ“šRust API Guidelines for why things are the way they are. E.g. why into, and why the _mut postfix. For understanding the Rust-"isms" around you when reading people's code.
  3. 🌱 You're now ready for πŸ‹οΈβ€β™€οΈRust by example and πŸ‹οΈβ€β™€οΈRust by practice
  4. ⏫ πŸ“šRust patterns is a great intro to idioms in Rust
  5. πŸš€ Next, πŸ“šZero to Production in Rust will give you some service-ish, production-ish use cases which will round off your experience
  6. πŸ€” When you feel curious about the "why's", pick up πŸ“šRust for Rustaceans. Skim it and read what's interesting to you, cover-to-cover is a hard read, unless you have the focus & time.

From here, since everyone have their own taste, visit πŸ“šRust Books from time to time to pick up a resource that you feel can move you forward to the next step.

πŸ“¦ Starter libraries - save me from choosing πŸ€¦β€β™€οΈ!

These are opinionated but popular choices. The goal is to avoid paradox of choice while learning.

πŸ‘Œ Thinking in Rust

Hand picked material to give you context, reasons, and history of how Rust evolved. Some of it is historical.

πŸ₯‡ Gold Nuggets

Great articles, blogs, videos of specific topics in Rust, that are must-read or must-watch

πŸ’‘ Project ideas

These are easy starter project ideas, not full-blown projects, just to get you up and running.

🀘 Looking to work with other people

Find other people that are passionate and looking to build stuff in Rust for fun.

πŸ€Ύβ€β™‚οΈ Hold on! I want to just play around before deciding to start

Some links to give you a feeling of Rust, if you're not ready to make the jump yet, or need some convincing to invest the time

πŸ’» Cool stuff to have open in a tab while working

If you have multiple screens, and like a full immersive learning experience - you can keep these open at all times

πŸš€ Releasing

Mental Bridges

These links will help bridge the mental model when you're coming from Node.js

I'm a Node.js Developer

  1. Add Rust for node developers to your schedule, which is a soft intro just to get your bearings.

I'm a Python developer

  1. Check out From Python into Rust

Contributing

Please feel free to submit PRs to improve this list. A few pointers:

  1. The list must be concise
  2. If there are new tracks, feel free to open them by adding a new subtitle to this README and submit PR (i.e. "Rust for game developers, how do I start?")

Happy hacking!

About

Hand curated advice and pointers for getting started with Rust

Topics

Resources

Stars

Watchers

Forks