Hacker GitHub

← All repos

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

Mentions per year 22 mentions · busiest year 2024 (10)
20082026
  1. You might see if this nascent CLR backend to Rust can do what you need https://github.com/FractalFir/rustc_codegen_clr
  2. 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
  3. 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
  4. …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
  5. …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
  6. 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.
  7. …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
  8. …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…
  9. 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…
  10. > 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
  11. …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
  12. 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
  13. 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…
  14. …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/
  15. …there some standout Rust libraries out there? Very curious about the motivation and use cases. [0] https://github.com/FractalFir/rustc_codegen_clr
  16. …projects that care about exercising the standard library and/or produce recommended CIL forms (like https://github.com/FractalFir/rustc_codegen_clr ).
  17. …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)
  18. …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
  19. …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:…
  20. 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
  21. ▲ 1
    Rust in .NET Projects
    story by AbuAssar · 2024-02-07 · 0 comments
  22. You don't need to wait https://github.com/FractalFir/rustc_codegen_clr
    comment by kaanyalova · 2024-02-07 · in RustPython