tafia / quick-protobuf

A rust implementation of protobuf parser
MIT License
446 stars 82 forks source link

serde support #61

Open uvd opened 7 years ago

uvd commented 7 years ago

implement serde crate compatibility thx

uvd commented 7 years ago

this is very useful for tokio or other transfer layer,implement serde api https://serde.rs/

tafia commented 7 years ago

This is something I'd like to work on as well. I have to re-learn serde because it's been a long time I haven't used it. Now that it has reached 1.0 this should indeed be a good time.

nerdrew commented 6 years ago

Again, prost's config allows you to add type attributes. That seems like it would solve this, no? They recommend you add the serde attributes to the generated structs and it seems like it would just work.

https://docs.rs/prost-build/0.3.2/prost_build/struct.Config.html#method.type_attribute

tafia commented 6 years ago

This is a good idea!

kootenpv commented 2 years ago

I keep going in circles with rust protobuf libs for one reason or another (╯°□°)╯︵ ┻━┻