cunarist / rinf

Rust for native business logic, Flutter for flexible and beautiful GUI
MIT License
1.88k stars 65 forks source link

feat(message): enable usage of the protoc-gen-prost-serde plugin #332

Closed NeoVance closed 3 months ago

NeoVance commented 3 months ago

Changes

Optionally install and use a protoc plugin that generates serde serialization implementations that follow the conventions of protobuf-JSON for Rust. This is useful for storing messages at rest, and prevents having to re-implement similar data structures or continually updating the output implementations every time message re-creates them. This is common when wishing to store messages with storage mechanisms, such as databases, or passing the data to HTTP servers which might require serialization.

Thank you in advance for any assistance you could provide. There is little if any information floating around about how to set up and work with this project as a contributor or developer, and my familiarity with the project at this point is minimal, so honestly these changes are completely un-tested.

temeddix commented 3 months ago

Looks good :) I'll be writing the guides to the docs and testing the results later.

temeddix commented 3 months ago

Thank you very much for your contribution!