Skip to content

Instantly share code, notes, and snippets.

@syntaxboybe
Forked from cedrickchee/rust_resources.md
Created July 25, 2024 14:11
Show Gist options
  • Save syntaxboybe/4e6ace66bf363ccfaaae1c7376ee3653 to your computer and use it in GitHub Desktop.
Save syntaxboybe/4e6ace66bf363ccfaaae1c7376ee3653 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

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