mtshiba/ruast
Printable & modifiable Rust AST
This tool helps Rust developers programmatically construct, modify, and print Rust Abstract Syntax Trees (ASTs). You provide structured Rust code components (like function definitions, structs, or expressions), and it generates well-formatted, valid Rust code as text or `proc_macro2::TokenStream` for further processing. It's for Rust developers who need to generate or transform Rust code.
Use this if you need to generate Rust code, build Rust `proc-macros` without relying on `syn` and `quote`, or perform systematic transformations on Rust code structures.
Not ideal if you need to feed ASTs directly into the Rust compiler or are looking for a tool to parse existing Rust source files into a modifiable AST.
Stars
8
Forks
3
Language
Rust
License
Apache-2.0
Category
Last pushed
Mar 01, 2026
Monthly downloads
42
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/mtshiba/ruast"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
lerouxrgd/rsgen-avro
Command line and library for generating Rust types from Avro schemas
seaofvoices/darklua
A command line tool that transforms Lua code
elastio/bon
Next-gen compile-time-checked builder generator, named function's arguments, and more!
usethesource/rascal
The implementation of the Rascal meta-programming language (including interpreter, type checker,...
JacquesCarette/Drasil
Generate all the things (focusing on research software)