What is Rust written in?

Year 2015 Paradigm systems, imperative, functional Typing static Self-hosting yes
The Rust compiler is written in C, OCaml, Rust, and LLVM (documented). Rust uses a bootstrap chain from Machine Code (documented). Rust is self-hosting.

Relationship Graph

All directly connected languages. Click any node to navigate to its page.

Compiler Implementation

LanguageConfidenceNotesSource
C 85% Early Rust had C components before OCaml bootstrap compiler Source
OCaml 95% Original Rust compiler (rustboot) written in OCaml Source
Rust 98% rustc is self-hosting since ~2011 Source
LLVM 95% rustc uses LLVM as backend Source

Bootstrap Chain

LanguageConfidenceNotesSource
Machine Code 88% Rust bootstrap chain starts at machine code level Source

Influenced By

Languages Rust Influenced

Frequently Asked Questions

What language is Rust written in?
Rust is primarily implemented in C and OCaml and Rust and Machine Code and LLVM. See the implementation section above for details and source references.
What languages influenced Rust?
Rust was influenced by Haskell, C++, Cyclone among others. See the influence section above for the full list.
Which languages did Rust influence?
Rust influenced V, Gleam, Zig among others.
Is Rust self-hosting?
Yes, Rust is self-hosting — its compiler can compile itself.

Evidence Sources

Related Languages

Explore Rust in Graph →