udoprog/genco
A whitespace-aware quasiquoter for beautiful code generation.
Supports eight languages (Rust, Java, C#, Go, Dart, JavaScript, C, Python) with automatic import deduplication and namespace conflict resolution. Uses procedural macros (`quote!` and `quote_in!`) combined with span-based whitespace detection to preserve indentation semantics—critical for languages like Python where whitespace is syntactically meaningful. Extensible via the `impl_lang!` macro for adding custom language support.
199 stars and 101,148 monthly downloads.
Stars
199
Forks
17
Language
Rust
License
Apache-2.0
Category
Last pushed
Dec 07, 2025
Monthly downloads
101,148
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/udoprog/genco"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
lerouxrgd/rsgen-avro
Command line and library for generating Rust types from Avro schemas
elastio/bon
Next-gen compile-time-checked builder generator, named function's arguments, and more!
seaofvoices/darklua
A command line tool that transforms Lua code
usethesource/rascal
The implementation of the Rascal meta-programming language (including interpreter, type checker,...
JacquesCarette/Drasil
Generate all the things (focusing on research software)