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 67 rust code generation tools tracked. 10 score above 50 (established tier). The highest-rated is lerouxrgd/rsgen-avro at 65/100 with 44 stars and 17,853 monthly downloads. 1 of the top 10 are actively maintained.

Get all 67 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

65
Established
2 seaofvoices/darklua

A command line tool that transforms Lua code

64
Established
3 elastio/bon

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

61
Established
4 usethesource/rascal

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

61
Established
5 JacquesCarette/Drasil

Generate all the things (focusing on research software)

58
Established
6 finos/morphir-elm

Tools to work with the Morphir IR in Elm.

57
Established
7 udoprog/genco

A whitespace-aware quasiquoter for beautiful code generation.

55
Established
8 teamplayer3/postcard-bindgen

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

55
Established
9 evestera/json_typegen

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

53
Established
10 eklipse2k8/oas3-gen

Rust OpenAPI 3.1 Type Generator

51
Established
11 mtshiba/ruast

Printable & modifiable Rust AST

48
Emerging
12 bengtmartensson/IrpTransmogrifier

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

46
Emerging
13 morloc-project/morloc

A typed, polyglot, functional language

45
Emerging
14 zorp-corp/sword

A modern Nock runtime with automatic persistence.

44
Emerging
15 Holmusk/elm-street

:deciduous_tree: Crossing the road between Haskell and Elm

44
Emerging
16 alekratz/enum-methods

Method generation for enumerated types in Rust

44
Emerging
17 FedericoBruzzone/tide

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

41
Emerging
18 sebastienrousseau/libmake

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

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

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

41
Emerging
20 antononcube/Raku-DSL-English-DataQueryWorkflows

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

39
Emerging
21 RayMarch/shame

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

39
Emerging
22 antononcube/Raku-JavaScript-D3

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

39
Emerging
23 kondrak/codespawn

Code generator written in Rust

37
Emerging
24 gitpod-io/dockerfreeze

Freeze your development environment as a Dockerfile

36
Emerging
25 crisidev/smithy-rs-pokemon-service

Gotta catch 'em all!

36
Emerging
26 mlabs-haskell/lambda-buffers

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

36
Emerging
27 kegesch/pakken

Model-driven code-generation for everything. CONCEPT

35
Emerging
28 progval/rust-xml-schema

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

32
Emerging
29 furkan-guvenc/crud_routers

Automatically create crud routes for your favorite api server and orm

32
Emerging
30 trskop/archetype

Archetype IDL

32
Emerging
31 antononcube/WL-MonadMakers-paclet

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

31
Emerging
32 jjfumero/marawacc

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

30
Emerging
33 dnaka91/mabo

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

30
Emerging
34 Cr0a3/CodeGenLib

A x86-64Bit code generator (like LLVM)

30
Emerging
35 lue-bird/generate-elm

easily generate elm using elm-review

29
Experimental
36 clucompany/include_tt

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

25
Experimental
37 barun-bash/human

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

24
Experimental
38 Altai-man/perl6-Java-Generate

Generates Java code from AST in Raku

23
Experimental
39 yassine1g1a-ctrl/Rnr-Compiler-Rust

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

23
Experimental
40 TextPast/linkml-rs

High-performance Rust implementation of LinkML with TypeQL generation

22
Experimental
41 giannifer7/weaveback

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

22
Experimental
42 JuanMarchetto/noricum

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

22
Experimental
43 resolritter/structout

Generate multiple structs from a single definition through a procedural macro

21
Experimental
44 chrischtel/rask

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

21
Experimental
45 realth000/racros

Collection of rust macros.

21
Experimental
46 xenoterracide/brix

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

20
Experimental
47 mbaulch/rustifact

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

20
Experimental
48 chippers/includer

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

19
Experimental
49 casonadams/zbus-xml-gen

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

19
Experimental
50 mverleg/apivolve

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

19
Experimental
51 Gnarus-G/ntro

Introspect configuration files and output typescript type declarations.

19
Experimental
52 Matthias-Fauconneau/combustion

Reaction rates and transport properties

19
Experimental
53 antononcube/WL-DSLTranslation-paclet

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

19
Experimental
54 MarcusGrass/codegen-rs

A simple Rust code generation library

18
Experimental
55 DV8FromTheWorld/haskell-shortcut-fusion-generation

Program that can generate Fold and Build declarations for Haskell GADTs

17
Experimental
56 t4ccer/ardu-gen

Embedded Arduino code generation DSL for Haskell.

17
Experimental
57 Rouilles-En-Geraniums/rust-stm32

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

17
Experimental
58 antononcube/Raku-EBNF-Grammar

Raku package for EBNF parsing and interpretation.

17
Experimental
59 efferentnervestylophorumdiphyllum452/haskell-a95

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

14
Experimental
60 sumitvijag/ocaml-u2v

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

14
Experimental
61 lemonlimelychee/haskell-9py

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

14
Experimental
62 portal-co/codegen-utils

Codegen utilities

14
Experimental
63 wapc/widl-spec

WebAssembly Interface Definition Language (WIDL) specification

13
Experimental
64 AgathokakologicalBit/wit

A [not-so-soon-to-be] safe programming language closely integrated with...

12
Experimental
65 asyncze/pas2wat

Compiler for subset of Pascal targeting WebAssembly text-format

12
Experimental
66 hail-lang/hail-old

a systems programming language that doesn't suck

11
Experimental
67 abdullah-albanna/schema2struct

Convert a JSON schema into Rust structs for efficient and type-safe data management.

10
Experimental

Comparisons in this category