gitwtfhub

wtf is mrustc?

take-cheeze/mrustc — explained in plain English

Analysis updated 2026-07-18 · repo last pushed 2020-09-18

C++Audience · researcherComplexity · 5/5DormantSetup · hard

TL;DR

mrustc is an experimental alternative Rust compiler written in C++ that translates Rust code to C, proving an independent Rust compiler is possible.

Mindmap

mindmap
  root((repo))
    What it does
      Compiles Rust code
      Skips borrow checker
      Outputs C code
    Tech stack
      C++
      Rust
      C compiler backend
    Use cases
      Study compiler design
      Build rustc itself
      Experiment on new platforms
    Audience
      Compiler enthusiasts
      Researchers
    Status
      Experimental
      Active roadmap

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Study how a Rust compiler can be built without deep Rust or LLVM knowledge

REASON 2

Experiment with compiling Rust programs on platforms where the official compiler struggles

REASON 3

Build your own Rust projects while working around current limitations

REASON 4

Explore translating Rust to C as an intermediate compilation step

What's in the stack?

C++RustC

How it stacks up

take-cheeze/mrustcachanana/mavsdkalange/llama.cpp
Stars0
LanguageC++C++C++
Last pushed2020-09-182024-05-20
MaintenanceDormantDormant
Setup difficultyhardmoderatemoderate
Complexity5/54/54/5
Audienceresearcherdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · hard Time to first run · 1day+

Experimental and mainly Linux-tested, expect to work around limitations to build real projects.

Yoink these prompts

Prompt 1
Explain how mrustc compiles Rust code into C without implementing a borrow checker, and why that still produces correct programs.
Prompt 2
Walk me through building the Rust standard library using mrustc on Linux.
Prompt 3
Show me how mrustc's Rust-to-C translation approach differs from the official rustc compiler pipeline.
Prompt 4
Help me understand mrustc's roadmap for adding a borrow checker and new codegen backends.

Frequently asked questions

wtf is mrustc?

mrustc is an experimental alternative Rust compiler written in C++ that translates Rust code to C, proving an independent Rust compiler is possible.

What language is mrustc written in?

Mainly C++. The stack also includes C++, Rust, C.

Is mrustc actively maintained?

Dormant — no commits in 2+ years (last push 2020-09-18).

How hard is mrustc to set up?

Setup difficulty is rated hard, with roughly 1day+ to a first successful run.

Who is mrustc for?

Mainly researcher.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.