andrewhickman / prost-reflect

A protobuf library extending prost with reflection support and dynamic messages.
https://crates.io/crates/prost-reflect
Apache License 2.0
86 stars 19 forks source link

Expose `Kind::wire_type` #33

Closed slinkydeveloper closed 1 year ago

slinkydeveloper commented 1 year ago

Hi, I wonder if it's possible to expose Kind::wire_type. This is useful when dealing with manual parsing of protobuf.

andrewhickman commented 1 year ago

Seems reasonable to make this public. I think the only reason I didn't make it public originally is that WireType doesn't appear in the public documentation for prost, but since its required to implement Message it should be OK to use.

I'd accept a PR to implement this.