Rustc Dependency Structure
rustc(the binary) callsrustc_driver::main.rustc_driverdepends on a lot of other crates, but the main one isrustc_interface.rustc_interfacedepends on most of the other compiler crates. It is a fairly generic interface for driving the whole compilation.- Most of the other
rustc_*crates depend onrustc_middle, which defines a lot of central data structures in the compiler.rustc_middleand most of the other crates depend on a handful of crates representing the early parts of the compiler (e.g. the parser), fundamental data structures (e.g.Span), or error reporting:rustc_data_structures,rustc_span,rustc_errors, etc.
- Most of the other
parent: rustc architecture tags: compiler rustc