Making Tools for Rust: An Introduction to the Compiler and How It Can Help You
summary
The compiler exposes concrete phases (parsing/expansion, analysis, codegen) and APIs that tools use: the driver stops after analysis, the AST visitor walks every function and call, and the save analysis API returns call and type data. Demos show rust format, rust clippy, and dxr and a simple call‑graph tool ~300–400 lines that emits graphviz, with LLVM handling codegen. The claim is that real tools follow the compiler pipeline and reuse its analyses.
AI-written summary · about
chapters (5)
related talks
25m"Compiler-Driven Development: Making Rust Work for You"
17mDiscover Rust tooling
58m(Almost) Everything You Should Know About The Compiler Frontend
28mC2Rust: Migrating Legacy Code to Rust
01h 42mIntroduction to Rust (for people who have never used a compiler)
29mRust is easy
26mPiecing together Rust: It is more than just writing code
56mReady for Rust
