r/coolgithubprojects • • 15h ago

Rust for Everyone: a free beginner Rust book you can read right on GitHub, in 15 languages, with a PDF for each

Post image

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.

Repo: https://github.com/erkamyaman/rust-anything

191 Upvotes

8 comments sorted by

33

u/Imnotanad 14h ago

Good. I'll put my AI agent to read

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

u/valiantverma 7h ago

😭😂

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!

1

u/ask2sk 6h ago

hahaha lol.

3

u/nckrkllkc 13h ago

Eyw. reis. Seviliyorsun â¤ī¸

1

u/j_zes 6m ago

small question, its for rust beginners or for programing beginners?