andrewhickman / prost-reflect

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

Example for protobuf text format #47

Closed HKalbasi closed 1 year ago

HKalbasi commented 1 year ago

This crate seems to have support for the protobuf text format, but I didn't find out from the docs to how to use it (it doesn't make any meaningful type from that module public, I guess it should be exposed through one of deserialization functions. How I can use it?

HKalbasi commented 1 year ago

Ah it is exposed at DynamicMessage::parse_text_format. Sorry for noise, and thanks for maintaining this!