# FractalFir/rustc_codegen_clr

A Rust compiler backend targeting CIL(.NET IR) and C.

Repository: https://github.com/FractalFir/rustc_codegen_clr
Canonical: https://ross.abutalabs.com/products/rustc_codegen_clr
Language: Rust
License: MIT
License Family: permissive
Topics: backend, compiler, csharp, dotnet, rust-lang, c
Last push: 2025-10-14T17:27:36+00:00

## Health v2 (maintenance only)
Score: 49/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 47, release rhythm 35, longevity 80
- inputs: {"age_days": 1120, "days_push": 323, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2051, forks 54 (observed 2026-08-28T04:06:09.160115+00:00)

## What it is
An experimental Rust compiler backend plugin that transpiles Rust code into .NET CIL assemblies or C source files. It includes a Rust/.NET interop layer for calling .NET APIs from Rust and exposing Rust code to .NET languages like C# and F#.

## Use cases
- compile Rust code to run on .NET runtime
- use Rust libraries from C# or F# projects
- transpile Rust to C source code
- call .NET APIs like StringBuilder from Rust
- run Rust on platforms without native Rust toolchains
- define .NET classes implemented in Rust

## When to choose
- you want to integrate Rust code into an existing .NET codebase
- you need to compile Rust to C for a platform without LLVM support
- you want to experiment with alternative Rust compiler backends

## When to avoid
- you need production-grade reliability - the project warns against serious use
- you rely on procedural macros, which are not yet supported
- you need fully functional Rust std - it is only ~95% working on .NET and ~80% on C

## Facets
- artifact type: library
- maturity: experimental
- function: compiler, interpreter, developer-tools
- domain: compilers, programming-languages, cross-platform, developer-tools
- platform: cross-platform, dotnet, cli
- tags: rust-compiler-backend, cil, dotnet-interop, transpiler, rust-to-c, interop

## Member repositories
- FractalFir/rustc_codegen_clr (main) score 49

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:09.160115+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:57:30.411736+00:00, confidence not recorded.
  - readme: https://github.com/FractalFir/rustc_codegen_clr (fetched 2026-08-28T04:06:09.160115+00:00, sha 3310d81bdbbc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
