Skip to content

Instantly share code, notes, and snippets.

@cedrickchee
Last active May 3, 2024 09:46
Show Gist options
  • Star 28 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save cedrickchee/f729e848b52eab8fbc88a3910072198c to your computer and use it in GitHub Desktop.
Save cedrickchee/f729e848b52eab8fbc88a3910072198c to your computer and use it in GitHub Desktop.
Awesome Rust — a collection of resources for learning Rust

Awesome Rust

I learn Rust by reading The Rust Programming Language (aka. TRPL) book.

This is my mind map and collection of resources for learning Rust in early 2019.

I plan to continuously update this list if time allows in future. I will move this into its own GitHub repo or something more permanent when this grow.


Notes

My notes while working through TRPL.

Programming paradigm: functional, imperative, structured, generic, concurrent

Rust focus: type and memory safety, precision, concurrency, performance, reliability

Rust enforces memory safety. Compile time memory safety guarantees protects us from:

  • Uninitialized variables
  • Use-after-free (UAV)
  • Double-frees
  • Exception due to NULL pointers (Rust does not have NULL)
  • Impossible to forget to lock the mutex
  • Data races between threads
  • Mostly no memory leaks
  • Iterator invalidation

In the safe subset of Rust, there's no undefined behavior at runtime:

  • Integer overflow is defined
  • Array access is bounds checked

Rust is modern — built with the experience learned in the past 40 years of programming languages.

Modern language features:

  • Generics
  • Enums and pattern matching
  • No overhead FFI

Modern tooling:

  • Great compiler errors
  • Built-in dependency manager
  • Built-in support for testing

Getting Help

Learn Rust

  • Get started with Rust - Official learning resources.
  • Rust Cookbook - A collection of simple examples that demonstrate good practices to accomplish common programming tasks, using the crates of the Rust ecosystem.
  • Rust by Example - A collection of runnable examples that illustrate various Rust concepts and standard libraries.
  • Learn Rust With Entirely Too Many Linked Lists
  • https://github.com/rust-lang/rustlings - Small exercises to get you used to reading and writing Rust code!
  • Tour of Rust - A step by step guide through the features of the Rust programming language.
  • A half-hour to learn Rust - 'similar' style to "Learn X in Y Minutes". It covers variable bindings, pattern matching, immutability, references, lifetimes, borrow rules, structs, traits, enums, generics, closures, and more.
  • Read Rust: Getting Started - Introductory posts, guides and tutorials for getting started with Rust.
  • Learning Rust - Rust programming language tutorials.
  • Rust-101 - A tutorial for the Rust language.
  • https://github.com/learning-rust/site - Rust Programming Language Tutorials for Everyone!
  • Comprehensive Rust 🦀 - This is the Rust course used by the Android team at Google. It provides you the material to quickly teach Rust to everyone. The course covers the full spectrum of Rust, from basic syntax to advanced topics like generics and error handling. It also includes Android-specific content on the last day.

Videos

Rust stream on YouTube and/or Twitch:

Books

  • Rust for Rustaceans by Jon Gjengset - a book that covers the next steps of Rust after TRPL/"the book". The book is written for people who are already familiar with Rust. The idea is that you read The Rust Programming Language (TRPL) first, play around with Rust for a bit on your own, maybe start using it "for real", and then pick this up to hone your skills. It is fairly fast paced, but is still has a good amount of low level details. (TLDR; if you're comfortable in Rust, this book is the next step up for intermediate developers.)
  • Rust in Action by Tim McNamara - Systems programming concepts and techniques.
  • Programming Rust by Jim Blandy, Jason Orendorff, Leonora F. S. Tindall - This revised, second edition covers the Rust 2021 Edition. It expands on many concepts in TRPL book. I like that it explains the memory layout of common Rust data structures.
  • The Rustonomicon book - Meet Safe and Unsafe.
  • https://github.com/psibi/rust-book-summary - Summary of the Rust book.

Presentations and Talks

Cheat sheet

Libraries

Useful libraies. Some created by Rust core members.

Blessed - An unofficial guide to the Rust ecosystem.

Not-Yet-Awesome Rust - A curated list of Rust code and resources that do NOT exist yet, but would be beneficial to the Rust community.

Other Crates

See more

Programs and Apps

GUI

Cross-platform, desktop UI:

Blogs and Articles

See more

Blogs

Newsletters

Async Rust

Editor, IDE

https://areweideyet.com/

Things I discovered:

Web Frameworks

Status: https://www.arewewebyet.org/

Actix

Actor Model

Comparison

Rust and Node.js

Rust bindings for native Node.js modules:

Rust for Python Programmer

WebAssembly

WebAssembly (abbrevated a wasm) is an emerging technology.

See more

Updates from Web teams at Google:

Rust and Cloud

AWS Lambda:

Rust on Mobile

Use Rust with Android NDK:

Rust Communities

Users of the Rust programming language: https://communitywiki.org/trunk/grab/Rustaceans

Reddit /r/rust

See more
Projects for learning
A sad day in Rust - related to actix-web debacle

Systems Programming with Rust

Problems and Issues

Problems and issues I encountered.

General

Not so useful knowledge.

Similar Projects


Learn Rust Again

Stuffs I referenced in Nov 2019 while learning Rust again by reading "The Rust Programmming Language" book.

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