TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

9 pointsby hazboabout 2 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.<p>Ideally examples that show what a &quot;complete&quot; Rust project might look like in terms of the way it is laid out and what associated tooling &#x2F; scripts that are commonly used or included in Rust code bases.

5 comments

digitalsanctumabout 2 years ago
In general, the crates listed here would be good to look at <a href="https:&#x2F;&#x2F;blessed.rs&#x2F;crates" rel="nofollow">https:&#x2F;&#x2F;blessed.rs&#x2F;crates</a> or browse the Rust topic at GitHub: <a href="https:&#x2F;&#x2F;github.com&#x2F;topics&#x2F;rust">https:&#x2F;&#x2F;github.com&#x2F;topics&#x2F;rust</a><p>For beginners, maybe look at smaller projects like libraries and CLIs without a lot of dependencies.
bgarabout 2 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.
surprisetalkabout 2 years ago
Roc is a new programming language written in Rust (and some Zig).<p><a href="https:&#x2F;&#x2F;github.com&#x2F;roc-lang&#x2F;roc&#x2F;tree&#x2F;main&#x2F;crates">https:&#x2F;&#x2F;github.com&#x2F;roc-lang&#x2F;roc&#x2F;tree&#x2F;main&#x2F;crates</a>
ianpurtonabout 2 years ago
Try rust-on-nails.com and <a href="https:&#x2F;&#x2F;github.com&#x2F;purton-tech&#x2F;cloak">https:&#x2F;&#x2F;github.com&#x2F;purton-tech&#x2F;cloak</a>
oslacabout 2 years ago
rust compiler, rust-analyzer, the top rust crates (ie. rand is a great example)