Overview of the rustc-dev-guide
mainThe rustc-dev-guide is a comprehensive resource designed to document the inner workings of rustc (the Rust compiler) and to assist new contributors in the development process. The guide is organized into several key areas:
- Building and debugging
rustc: Instructions for building, debugging, and profiling the compiler. - Contributing to Rust: Procedures for contribution, using git/GitHub, and stabilizing features.
- Bootstrapping: How the compiler builds itself using previous versions.
- High-level compiler architecture: The stages of the compilation process.
- Source code representation: How raw source code is transformed into intermediate forms.
- Supporting infrastructure: Command-line argument conventions, compiler entry points (like
rustc_driverandrustc_interface), and the design of errors and lints. - Analysis: How the compiler checks code properties (e.g., type checking).
- MIR to binaries: The process of generating linked executable machine code.
- Appendices: Reference information and a glossary.