top | item 34945386

Ask HN: What are some good examples of Rust code bases to read and learn from?

9 points| hazbo | 3 years ago

As the title states, just interested in finding some examples people think would be particularly good reads, especially for people approaching the language for the first time.

Ideally examples that show what a "complete" Rust project might look like in terms of the way it is laid out and what associated tooling / scripts that are commonly used or included in Rust code bases.

5 comments

order

bgar|3 years ago

I would advise not looking at libraries as a beginner; because they’re meant to be as generic as possible, they tend to abuse the type system and are overall a lot harder to parse for a beginner. Stick to reading the Rust code for standalone programs.

oslac|3 years ago

rust compiler, rust-analyzer, the top rust crates (ie. rand is a great example)