MCPcopy Index your code
hub / github.com/awesome-kusion/rust-code-book-zh

github.com/awesome-kusion/rust-code-book-zh @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
16 symbols 43 edges 2 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Rust源码剖析

English 简体中文

引个流先:

序言

写这个电子书是因为一开始在做 KusionStack、KCLVM 项目中编译器研发的相关工作,本着学习优秀编译器的设计想法,开始学习 Rustc 的源码。这个过程中记录了一些笔记和文档,在柴大的建议下整理成文章正式发在了公众号上。没想到很受欢迎,于是决定坚持写下去。接下来会去写一些 Rustc 中的源码实现、标准库、工具,以及一些 Rust 的开源项目。

KCLVM 是我们在 Kusion 这个项目中使用 Rust 开发的语言编译器,书中的部分内容在这个项目中也有对应的应用。对云原生生态、技术感兴趣的同学可以了解下 👉 KusionStack 这个项目;对 Rust、编程语言、编译器感兴趣的同学可以看下 👉 KCLVM

最后,这些文章中的内容大部分是我阅读源码时的一些记录和个人理解,以及 rust-dev-guide 中对应的一些描述。本人水平有限,所以可能会有一些不准确甚至错误的地方,也欢迎大家提 PR/Issue/Discussion,或者下方扫码加群讨论。如果对 Rust 源码有自己分析和见解,同样欢迎提 PR 投稿。


电子书

目标:学习分析 Rust 编译器(Rustc)、标准库、开源项目源代码。

cover

目录

序言


Star History Chart

欢迎通过以下方式联系我们: - Slack: https://join.slack.com/t/rustcodebook/shared_invite/zt-1htuqzkf9-45i6FO1L~ihwnmbGGh7QEw - Twitter: He1pa

Core symbols most depended-on inside this repo

j
called by 14
js/bigPicture.js
q
called by 9
js/bigPicture.js
R
called by 6
js/bigPicture.js
B
called by 3
js/bigPicture.js
W
called by 2
js/bigPicture.js
P
called by 2
js/bigPicture.js
G
called by 2
js/bigPicture.js
X
called by 2
js/bigPicture.js

Shape

Function 16

Languages

TypeScript100%

Modules by API surface

js/bigPicture.js14 symbols
js/custom.js2 symbols

For agents

$ claude mcp add rust-code-book-zh \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact