3 ms·
> Using protobufs meant deferring learning the various serde's of Rust, which has helped me to focus on getting something done. I have only dabbled once with S
by majewsky 8y ago
> Using protobufs meant deferring learning the various serde's of Rust, which has helped me to focus on getting something done.
I have only dabbled once with Serde to generate some JSON, but I found it quite pleasant to use. Similar to Go's JSON library: You basically annotate your types like "this struct can be serialized, the field FooBar is serialized as 'foo'" etc., and Serde generates a serialize method for you (or, to be precise, it generates an implementation of some Serialize trait for your type).
- nevi-me 8y agoIt was less about JSON, but more about reducing the number of libraries that I had to learn in one go. The benefit of using protobufs/gRPC was that I already had a host of microservices that I could choose to interact with. I'll need to learn serde at some point, but it might be after a while as all the things I'm planning on doing with Rust include protobufs.