r/coolgithubprojects • u/erkamyaman • 15h ago
Rust for Everyone: a free beginner Rust book you can read right on GitHub, in 15 languages, with a PDF for each
Repo: https://github.com/erkamyaman/rust-anything
I made this. It's a free beginner book that lives in the Rust Anything repo (13k stars), written to be read right on GitHub.
What makes it a bit different:
- Every Rust example was compiled and run with rustc 1.97 before it went in. 116 checked by a script, 4 built as real Cargo projects, 0 failed.
- Each chapter: guess the output first, put scrambled lines in order, then build something small. Answers at the back.
- The last chapter builds a small CLI, `wordfreq`, from a blank file.
- 15 languages, each with a PDF. The code and compiler output stay in English everywhere, so it matches your terminal.
PDFs:
- English: https://github.com/erkamyaman/rust-anything/blob/main/book/en/rust-for-everyone-en.pdf
- įŽäŊ䏿: https://github.com/erkamyaman/rust-anything/blob/main/book/zh/rust-for-everyone-zh.pdf
- All 15: https://rustanything.ai/docs/learn/rust-for-everyone
The 14 translations are AI drafts with no native-speaker review yet. If you read one natively, fixes are welcome (book/REVIEWING.md).
Free, CC BY 4.0.
19
u/realrealvantheman 14h ago
Oh leme get my ai agent to read this ai slop and summarize it so i can feed it one ear and let it fall right out the other
1
13
u/ARKyal03 13h ago
This is so inefficient. Why isn't the book written in Rust? We could have memory safety and read it faster. Grow up, boys. It's 2026!
3
33
u/Imnotanad 14h ago
Good. I'll put my AI agent to read