10 releases

0.3.0 Sep 24, 2024
0.2.6 Apr 4, 2023
0.2.5 Mar 22, 2022
0.2.4 Apr 7, 2021
0.1.1 Mar 5, 2021

#149 in Development tools

Download history 92/week @ 2024-09-18 84/week @ 2024-09-25 19/week @ 2024-10-02 2/week @ 2024-10-09

431 downloads per month

MIT license

40KB
828 lines

Rustgen

Inspired by Hygen is this a code generator written in Rust! While its pretty different from Hygen itself, it tries to archive the same goal: generating code.

It follows the same principle of writing generators (templates), filling them out and placing them, where they belong. And as well as creating new files it also generates code into existing files.

This application is not bound to any language, so it's not just for Rust but written in Rust.

Why?

Because I wanted to do something in Rust... and I don't like the idea of having JavaScript (Node.JS) installed just for generating code. Rust can do this aswell but without a bigger runtime around it.

Todos

  • Create a proper documentation for the templating, options etc. instead of relying on the examples

Dependencies

~11MB
~204K SLoC