lerouxrgd / rsgen-avro

Command line and library for generating Rust types from Avro schemas
MIT License
37 stars 29 forks source link

Optionally generate builders for generated structs #20

Closed gudjonragnar closed 3 years ago

gudjonragnar commented 3 years ago

I think it could be a great addition to the project to add the option to generate or derive builders for the generated structs, for example using this crate: https://github.com/colin-kiegel/rust-derive-builder.

lerouxrgd commented 3 years ago

Sure, it could be a --derive-builder like there is --variant-access. Let me know if you want to do a PR for that, otherwise I can give it a try.

gudjonragnar commented 3 years ago

I created a PR, not sure if it is sufficient but please take a look.

lerouxrgd commented 3 years ago

Released in 0.9.7.