Any good template/code generation library?

⚓ Rust    📅 2025-08-23    👤 surdeus    👁️ 4      

surdeus

Hey everyone, to refresh my rust knowledge I would like to create a library that parses openapi specs and produces rust structures. Kinda like this library for go but easier

I was wondering if there is any library that lets one create rust code at runtime without having to create a bunch of boilerplate.

All my googling produced either macros (not applicable in this case since I want to generate the code at runtime) or HTML templating (I want rust templating).

Any idea? Thanks in advance

3 posts - 2 participants

Read full topic

🏷️ Rust_feed