Rust Code Generation AI Coding Tools

Tools and libraries for generating Rust code at compile-time or runtime, including macros, builders, and code generators. Does NOT include code generation for other languages, schema-to-code tools, or general scaffolding frameworks.

There are 62 rust code generation tools tracked. 7 score above 50 (established tier). The highest-rated is lerouxrgd/rsgen-avro at 61/100 with 44 stars and 17,412 monthly downloads. 1 of the top 10 are actively maintained.

Get all 62 projects as JSON

curl "https://pt-edge.onrender.com/api/v1/datasets/quality?domain=ai-coding&subcategory=rust-code-generation&limit=20"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.

# Tool Score Tier
1 lerouxrgd/rsgen-avro

Command line and library for generating Rust types from Avro schemas

61
Established
2 elastio/bon

Next-gen compile-time-checked builder generator, named function's arguments,...

57
Established
3 seaofvoices/darklua

A command line tool that transforms Lua code

56
Established
4 usethesource/rascal

The implementation of the Rascal meta-programming language (including...

54
Established
5 JacquesCarette/Drasil

Generate all the things (focusing on research software)

51
Established
6 teamplayer3/postcard-bindgen

A crate which generates bindings for the postcard binary format for other...

51
Established
7 finos/morphir-elm

Tools to work with the Morphir IR in Elm.

50
Established
8 udoprog/genco

A whitespace-aware quasiquoter for beautiful code generation.

48
Emerging
9 eklipse2k8/oas3-gen

Rust OpenAPI 3.1 Type Generator

47
Emerging
10 evestera/json_typegen

Tools and libraries to create types for Rust, Kotlin, TypeScript and Python...

46
Emerging
11 mtshiba/ruast

Printable & modifiable Rust AST

41
Emerging
12 gpu-cli/openapi-to-rust

Generate strongly-typed Rust structs, HTTP clients, and SSE streaming...

39
Emerging
13 bengtmartensson/IrpTransmogrifier

Parser for IRP notation protocols, with rendering, code generation, and decoding.

39
Emerging
14 morloc-project/morloc

A typed, polyglot, functional language

38
Emerging
15 zorp-corp/sword

A modern Nock runtime with automatic persistence.

37
Emerging
16 Holmusk/elm-street

:deciduous_tree: Crossing the road between Haskell and Elm

37
Emerging
17 alekratz/enum-methods

Method generation for enumerated types in Rust

37
Emerging
18 FedericoBruzzone/tide

Tide, a compiler for its non-textual, backend-independent IR

35
Emerging
19 sebastienrousseau/libmake

A code generator to reduce repetitive tasks and build high-quality Rust libraries. 🦀

34
Emerging
20 RayMarch/shame

A fully featured DSL for writing shaders/GPU-pipelines in Rust

32
Emerging
21 antononcube/Raku-JavaScript-D3

Raku package that generates JavaScript D3.js code for plots and charts.

32
Emerging
22 antononcube/Raku-DSL-English-DataQueryWorkflows

Raku package for making data query workflows from natural language commands...

32
Emerging
23 kondrak/codespawn

Code generator written in Rust

30
Emerging
24 mlabs-haskell/lambda-buffers

LambdaBuffers toolkit for sharing types and their semantics between...

29
Experimental
25 crisidev/smithy-rs-pokemon-service

Gotta catch 'em all!

29
Experimental
26 gitpod-io/dockerfreeze

Freeze your development environment as a Dockerfile

29
Experimental
27 kegesch/pakken

Model-driven code-generation for everything. CONCEPT

28
Experimental
28 trskop/archetype

Archetype IDL

25
Experimental
29 progval/rust-xml-schema

[WIP] (Self-generating) XML parser generator based on XML schemas.

25
Experimental
30 furkan-guvenc/crud_routers

Automatically create crud routes for your favorite api server and orm

25
Experimental
31 barun-bash/human

The programming language that compiles English into production-ready apps.

25
Experimental
32 antononcube/WL-MonadMakers-paclet

Wolfram Language (aka Mathematica) paclet for making software monads.

24
Experimental
33 yassine1g1a-ctrl/Rnr-Compiler-Rust

Compiler toolchain for a Rust-like language : recursive descent parser,...

24
Experimental
34 jjfumero/marawacc

Parallel programming framework for accelerating Java programs on GPUs and...

23
Experimental
35 dnaka91/mabo

Data format and schema, with a type system as strong as Rust's.

23
Experimental
36 Cr0a3/CodeGenLib

A x86-64Bit code generator (like LLVM)

23
Experimental
37 giannifer7/weaveback

Bidirectional literate programming toolchain (noweb, macros, source tracing)

22
Experimental
38 JuanMarchetto/noricum

C-to-Rust migration CLI — LLM agents translate C to idiomatic, safe Rust (0...

22
Experimental
39 lue-bird/generate-elm

easily generate elm using elm-review

22
Experimental
40 chrischtel/rask

A modular, low-level code generation toolkit for Rust.

19
Experimental
41 clucompany/include_tt

[stable] Macros for ultra-flexible injection of compiler trees, literals, or...

18
Experimental
42 TextPast/linkml-rs

High-performance Rust implementation of LinkML with TypeQL generation

16
Experimental
43 Altai-man/perl6-Java-Generate

Generates Java code from AST in Raku

16
Experimental
44 efferentnervestylophorumdiphyllum452/haskell-a95

🛠️ Build and explore A95 functions in Haskell for efficient numeric...

14
Experimental
45 sumitvijag/ocaml-u2v

🚀 Transform OCaml code into a variety of formats with ease, enhancing...

14
Experimental
46 resolritter/structout

Generate multiple structs from a single definition through a procedural macro

14
Experimental
47 portal-co/codegen-utils

Codegen utilities

14
Experimental
48 lemonlimelychee/haskell-9py

🛠️ Build and run Haskell code in a Python environment, bridging the gap...

14
Experimental
49 realth000/racros

Collection of rust macros.

14
Experimental
50 mbaulch/rustifact

A seamless bridge between a build script and the main crate.

13
Experimental
51 casonadams/zbus-xml-gen

Generate Rust code for zbus from D-Bus XML introspection files — both client...

13
Experimental
52 xenoterracide/brix

Brix is a CLI tool written in Rust for scaffolding and code generation.

13
Experimental
53 mverleg/apivolve

An API evolution tool that helps keep your APIs backwards compatible yet clean

12
Experimental
54 Matthias-Fauconneau/combustion

Reaction rates and transport properties

12
Experimental
55 Gnarus-G/ntro

Introspect configuration files and output typescript type declarations.

12
Experimental
56 chippers/includer

Dynamically include assets from directories at compile time with stable rust.

12
Experimental
57 antononcube/WL-DSLTranslation-paclet

Wolfram Language (aka Mathematica) paclet for translation of natural...

12
Experimental
58 MarcusGrass/codegen-rs

A simple Rust code generation library

11
Experimental
59 DV8FromTheWorld/haskell-shortcut-fusion-generation

Program that can generate Fold and Build declarations for Haskell GADTs

10
Experimental
60 Rouilles-En-Geraniums/rust-stm32

Cross-compile to stm32, generate Rust register maps from json, task...

10
Experimental
61 t4ccer/ardu-gen

Embedded Arduino code generation DSL for Haskell.

10
Experimental
62 antononcube/Raku-EBNF-Grammar

Raku package for EBNF parsing and interpretation.

10
Experimental

Comparisons in this category