jsontypedef / json-typedef-codegen

A CLI tool that generates code from JSON Typedef schemas
https://jsontypedef.com/docs/tools/jtd-codegen
MIT License
154 stars 31 forks source link

Is it possible to use it as a crate from the build.rs? #51

Closed Nazariglez closed 4 weeks ago

Nazariglez commented 2 years ago

Hi! I just discovered jdt and this crate and it looks really great! Thanks for all the hard work here.

I was wondering, is it possible to install this package from crates.io and generate code on the build.rs of a project? I saw that it's available from brew which is nice, but I was looking for a more portable way, where it's a dependency attached to the project and reads a json and auto generate rust code when I do cargo build/run on my project.

Thanks!