FractalFir/rustc_codegen_clr
View on GitHub ↗ ★ 2,059 Rust
A Rust compiler backend targeting CIL(.NET IR) and C.
22 mentions on Hacker News by 16 people: 1 story, 21 comments · first 2024-02-07 · latest 2026-09-17
20082026
-
You might see if this nascent CLR backend to Rust can do what you need https://github.com/FractalFir/rustc_codegen_clr
comment by genxy · 2026-09-17 · in Developing provably correct Rust code with Verus -
There is a rustc_codegen_clr which transpiles to .NET https://github.com/fractalfir/rustc_codegen_clr
comment by dralley · 2026-09-10 · in Rust is tier-1 language at Microsoft -
And someone has made ( https://github.com/FractalFir/rustc_codegen_clr ) a backend targeting C (alongside .NET/CIL).
comment by forgotpwd16 · 2025-12-07 · in Eurydice: a Rust to C compiler -
…which allows you to transpile Rust into .NET assemblies, or C source files.[0] [0]: https://github.com/FractalFir/rustc_codegen_clr
comment by mustache_kimono · 2025-12-07 · in Eurydice: a Rust to C compiler -
…to QBE IR which can then be compiled with QBE/cc. [1]: https://github.com/thepowersgang/mrustc [2]: https://github.com/FractalFir/rustc_codegen_clr [3]: https://old.reddit.com/r/rust/comments/1bhajzp/ [4]: https://codeberg.org/notgull/dozer
comment by forgotpwd16 · 2025-11-25 · in APT Rust requirement raises questions -
Rust has an experimental C backend of its own as part of rustc_codegen_clr https://github.com/FractalFir/rustc_codegen_clr . Would probably work better than trying to transpile C from general LLVM IR.
comment by zozbot234 · 2025-09-20 · in Git: Introduce Rust and announce it will become mandatory in the build system -
…problems) These problems are largely solved now that there's a working transpiler from Rust to C - https://github.com/FractalFir/rustc_codegen_clr
comment by zozbot234 · 2025-07-03 · in Introducing tmux-rs -
…project doesn’t have that as a goal. In fact, it doesn’t even have “Rust to C compiler” as a goal. https://github.com/FractalFir/rustc_codegen_clr : “ The project aims to provide a way to easily use Rust libraries in .NET. It comes with a…
comment by Someone · 2025-04-12 · in Rust to C compiler – 95.9% test pass rate, odd platforms -
I clicked through to the project at https://github.com/FractalFir/rustc_codegen_clr - from a quick glance at it, with 1.8k stars and 17 contributors, it deserves a better treatment than a passive—aggressive dismissal like this as a top…
comment by ay · 2025-04-12 · in Rust to C compiler – 95.9% test pass rate, odd platforms -
> Cue rust devotees in 3, 2, .. If you are a rust devotee, you can use https://github.com/FractalFir/rustc_codegen_clr to compile your rust code to the same .NET runtime as C#. The project is still in the works but support is said to be…
comment by zozbot234 · 2025-03-11 · in A 10x Faster TypeScript -
…depends if they target LLVM IR, or .NET MSIL. https://www.graalvm.org/latest/reference-manual/llvm/ https://github.com/FractalFir/rustc_codegen_clr Also ever heard about containers? They have this magic feature, you don't need to rewrite…
comment by pjmlp · 2025-02-14 · in Extensible WASM Applications with Go -
We now have https://github.com/FractalFir/rustc_codegen_clr#c-support . So we can keep all our Rust files out-of-tree and just submit C code like everyone else.
comment by zozbot234 · 2025-02-11 · in Rust kernel policy -
I'm impressed by this individual's effort to bring rust to the clr: https://github.com/FractalFir/rustc_codegen_clr It is already way more complete given it's age than I would have expected. I agree that the clr is a more natural target…
comment by estebank · 2024-11-30 · in Safe relational database queries using the Rust type system -
…C# path so would be curious to hear your take there. There's also the mad lad support rust in .net https://github.com/FractalFir/rustc_codegen_clr/
comment by Already__Taken · 2024-10-28 · in Using Rust in non-Rust servers to improve performance -
…there some standout Rust libraries out there? Very curious about the motivation and use cases. [0] https://github.com/FractalFir/rustc_codegen_clr
comment by CharlieDigital · 2024-09-23 · in Rust panics under the hood, and implementing them in .NET -
…projects that care about exercising the standard library and/or produce recommended CIL forms (like https://github.com/FractalFir/rustc_codegen_clr ).
comment by neonsunset · 2024-08-27 · in Microsoft donates the Mono Project to the Wine team -
…to the submission, so they're kind of disjoint One will also want to temper their expectations per https://github.com/FractalFir/rustc_codegen_clr#current-stat... (MIT & Apache 2)
comment by mdaniel · 2024-06-06 · in Rust to .NET compiler: Statically Sized, dynamically sized, and other -
…that .NET exposes a very wide set of intrinsics allowing a lot of code to be ported that way). [0] https://github.com/FractalFir/rustc_codegen_clr
comment by neonsunset · 2024-05-15 · in Nearly all Nintendo 64 games can now be recompiled into native PC ports -
…you could follow along: https://fractalfir.github.io/generated_html/home.html The project itself: https://github.com/FractalFir/rustc_codegen_clr - A video series on writing a compiler for .NET from scratch:…
comment by neonsunset · 2024-05-08 · in The search for easier safe systems programming -
The author answers the "why" in the FAQ https://github.com/FractalFir/rustc_codegen_clr?tab=readme-o... . I didn't find it very convincing but I'm sure the author will learn a lot of neat things along the way.
comment by withinrafael · 2024-05-04 · in Rust to .NET compiler – Progress update -
▲ 1
Rust in .NET Projectsstory by AbuAssar · 2024-02-07 · 0 comments
-
You don't need to wait https://github.com/FractalFir/rustc_codegen_clr
comment by kaanyalova · 2024-02-07 · in RustPython