TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

9 点作者 hazbo大约 2 年前
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 条评论

digitalsanctum大约 2 年前
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.
bgar大约 2 年前
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.
surprisetalk大约 2 年前
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>
ianpurton大约 2 年前
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>
oslac大约 2 年前
rust compiler, rust-analyzer, the top rust crates (ie. rand is a great example)