whatisgithub

What 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

In one sentence

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

What do people build with it?

USE CASE 1

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

USE CASE 2

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

USE CASE 3

Build your own Rust projects while working around current limitations

USE CASE 4

Explore translating Rust to C as an intermediate compilation step

What is it built with?

C++RustC

How does it compare?

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 get it running?

Difficulty · hard Time to first run · 1day+

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

Copy-paste 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

What 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.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.