lerouxrgd / rsgen-avro

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

Struct ordering #3

Closed Pritesh-Patel closed 5 years ago

Pritesh-Patel commented 5 years ago

Just started using this, its great but because of this issue: https://github.com/flavray/avro-rs/issues/47 i have had to manually reorder the fields in the generated struct. Would it be possible to maintain the ordering in the schema in the struct also?

lerouxrgd commented 5 years ago

Hi, thank you for your feedback. I released a patch to preserve Avro records fields ordering in the generated Rust struct. Please give latest version (the 0.4.0) a try and let me know if it works.

Pritesh-Patel commented 5 years ago

This worked great thanks! @lerouxrgd