sfackler / rust-postgres

Native PostgreSQL driver for the Rust programming language
Apache License 2.0
3.42k stars 436 forks source link

feat(types): add support for prost messages #1094

Closed TroyKomodo closed 7 months ago

TroyKomodo commented 7 months ago

Adds a wrapper type for prost messages to help deserialize bytea values directly into the protobuf structure.

TroyKomodo commented 7 months ago

Unsure if this change is welcome, i thought it might be useful to others since this is something i use in my projects. I am in the process of migrating from sqlx. So i thought i would PR some of the utils I use.

sfackler commented 7 months ago

I think this is something that would be best left to an external library.