Rust Code Generation

Open-source Rust projects categorized as Code Generation

Top 19 Rust Code Generation Projects

Code Generation
  1. bon

    Next-gen compile-time-checked builder generator, named function's arguments, and more!

    Project mention: From Unit Tests to Whole Universe Tests (With Will Wilson of Antithesis) [video] | news.ycombinator.com | 2025-09-16
  2. Kargo

    Stop Scripting Promotions. Start Shipping with Kargo. Kargo automates promotion across dev, staging, and prod with approval gates and verification. Open source, built by the team behind Argo CD. Download now.

    Kargo logo
  3. ts-rs

    Generate TypeScript bindings from Rust types

  4. teo

    High performance ergonomic ORM for Rust.

  5. llm-ls

    LSP server leveraging LLMs for code completion (and more?)

  6. optimization-engine

    Nonconvex embedded optimization: code generation for fast real-time optimization + ROS support

  7. shame

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

  8. json_typegen

    Tools and libraries to create types for Rust, Kotlin, TypeScript and Python from JSON samples

  9. AppSignal

    Monitoring that respects your time & budget. APM, error tracking, and dashboards for modern web apps. Ten-minute setup, transparent flat pricing, and support from engineers who actually use the product.

    AppSignal logo
  10. darklua

    A command line tool that transforms Lua code

  11. alef

    Generate fully-typed, lint-clean language bindings for Rust libraries across 16 languages

    Project mention: One Rust core, native SDKs in 16 languages: how we stopped hand-writing bindings | dev.to | 2026-07-06

    The tool is alef. It extracts the Rust API surface and emits language-native bindings, package scaffolding, type stubs, docs, and e2e tests from one alef.toml:

  12. code-muse-rs

    generate apps using prompt engineering and the OpenAI API

  13. libmake

    A code generator to reduce repetitive tasks and build high-quality Rust libraries. πŸ¦€

  14. almide

    A statically-typed programming language optimized for LLM code generation. Compiles to Rust and WebAssembly.

    Project mention: AI wrote my compiler. A mathematical proof checks its work on every build. | dev.to | 2026-07-24
  15. RustyLR

    A Bison-inspired parser generator and compiler frontend framework for Rust, with IELR(1), LALR(1), GLR, and LSP support.

  16. patchloom

    Structured file edits for AI agents (JSON/YAML/TOML, markdown, AST, dry-run, MCP). Not a generic filesystem MCP.

    Project mention: Patchloom – structured file edits for AI agents (CLI and MCP) | news.ycombinator.com | 2026-08-08
  17. rask

    A modular, low-level code generation toolkit for Rust. (by chrischtel)

    Project mention: Building an x86-64 instruction encoder in Rust | news.ycombinator.com | 2025-10-07

    I’ve been working on Rask, a small x86-64 instruction encoder written in Rust.

    It’s designed for people who want to understand how compilers emit machine code β€” without the complexity of LLVM or Cranelift.

    It currently supports mov/add/sub/ret with correct REX and ModR/M encoding, and includes tests verifying the byte output.

    Repo: https://github.com/chrischtel/rask

    Feedback welcome, especially from anyone who’s worked on compiler backends or JITs.

  18. buildlang

    A systems language with typed capability effects, sum types, C FFI, native binaries through its production C path, and HLSL/GLSL output. Linear types and non-C backends remain experimental. Ships as buildc.

    Project mention: Five short papers on making AI-assisted work re-checkable | dev.to | 2026-07-06

    BuildLang β€” a compiler that puts ambient capabilities in the function type and seals re-derivable receipts verified by re-execution. 10.5281/zenodo.21231253 Β· source

  19. carrier

    Turn business specs into production-ready APIs with built-in auth, DB, and compliance. (by nikoma)

    Project mention: We rebuilt our auth back end in under an hour using a DSL/compiler approach | news.ycombinator.com | 2026-05-06
  20. rucc

    An optimizing C compiler written in Rust. Verified rewrite rules, acyclic e-graphs, no external assembler. The target ladder is SQLite, then PostgreSQL, then the Linux kernel. (by tamnd)

    Project mention: Show HN: Rucc – C compiler in Rust, now compile and run SQLite | news.ycombinator.com | 2026-09-07
  21. phonton-cli

    Open-source Phonton CLI: a local-first agentic development terminal with context packs, source handles, and verification gates.

    Project mention: Building Phonton: a local-first AI coding CLI that verifies diffs before review | dev.to | 2026-05-02
  22. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Rust Code Generation discussion

Log in or Post with

Rust Code Generation related posts

Index

What are some of the best open-source Code Generation projects in Rust? This list will help you:

# Project Stars
1 bon 2,126
2 ts-rs 1,869
3 teo 1,402
4 llm-ls 881
5 optimization-engine 645
6 shame 323
7 json_typegen 319
8 darklua 237
9 alef 96
10 code-muse-rs 40
11 libmake 31
12 almide 31
13 RustyLR 28
14 patchloom 17
15 rask 5
16 buildlang 4
17 carrier 3
18 rucc 1
19 phonton-cli 0

Sponsored
Stop Scripting Promotions. Start Shipping with Kargo
Kargo automates promotion across dev, staging, and prod with approval gates and verification. Open source, built by the team behind Argo CD. Download now.
akuity.io