Skip to content

Instantly share code, notes, and snippets.

@thexeromin
Forked from rylev/learn.md
Created October 13, 2022 06:29
Show Gist options
  • Save thexeromin/093a02827f918ee1d38d87f8ee0ce70a to your computer and use it in GitHub Desktop.
Save thexeromin/093a02827f918ee1d38d87f8ee0ce70a to your computer and use it in GitHub Desktop.
How to Learn Rust

Learning Rust

The following is a list of resources for learning Rust as well as tips and tricks for learning the language faster.

Warning

Rust is not C or C++ so the way your accustomed to do things in those languages might not work in Rust. The best way to learn Rust is to embrace its best practices and see where that takes you.

The generally recommended path is to start by reading the books, and doing small coding exercises until the rules around borrow checking become intuitive. Once this happens, then you can expand to more real world projects. If you find yourself struggling hard with the borrow checker, seek help. It very well could be that you're trying to solve your problem in a way that goes against how Rust wants you to work.

Books

The two best book resources are:

Rust is a particular language that works best when you work with how it wants you to do things. Therefore, in general, most people find it preferable to read the books (at least the first halves) before trying to build anything complex in Rust.

Online Resources

Specialized Topics:

Libraries to Know

Note: If your background is in C/C++ you might be tempted to implement a doubly-linked list in Rust. Rust’s strict ownership rules make implementing a doubly-linked list (where each node has multiple owners) difficult.

If you have any questions or want to know what the best way to get started in a specific area of Rust, please let us know. We’re more than happy to help set you on the right path of learning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment