You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to make use of rust-protobuf instead of prost when building servers based on tonic. Primary use cases are reading options on messages and service descriptors, and being able to use the semi-official proto3 JSON standard for setting up test cases and config files.
I assume something like this would be widely used since rust-protobuf has more proto features that may be needed without relying on additional third party libraries like prost-reflect (and would that even work with tonic-build?). And maybe if Rust consolidated on a single maintained proto library, there may be more users willing to contribute. The big unknown factor however is if Google ever decides to release their own instead of anointing an existing proto library -- then why take time to contribute at all if everything else gets dropped in the near future? Thankfully rust-protobuf and grpc-rs are mentioned by Google on an Android page, but no grpc-rs for me currently since I'd like to work within tower.
implement builder for server and client options like tonic-build
I'm assuming it is straightforward due to the Codec trait, so kind of surprised I couldn't find an implementation in an internet search for rust-protobuf tonic codec. No one has looked into trying this before?
The text was updated successfully, but these errors were encountered:
I'd like to make use of
rust-protobuf
instead ofprost
when building servers based ontonic
. Primary use cases are reading options on messages and service descriptors, and being able to use the semi-official proto3 JSON standard for setting up test cases and config files.I assume something like this would be widely used since
rust-protobuf
has more proto features that may be needed without relying on additional third party libraries likeprost-reflect
(and would that even work withtonic-build
?). And maybe if Rust consolidated on a single maintained proto library, there may be more users willing to contribute. The big unknown factor however is if Google ever decides to release their own instead of anointing an existing proto library -- then why take time to contribute at all if everything else gets dropped in the near future? Thankfullyrust-protobuf
andgrpc-rs
are mentioned by Google on an Android page, but nogrpc-rs
for me currently since I'd like to work withintower
.So
tonic
seems implemented fairly flexibly since it based ontower
(see theService
re-export) and thattonic::Codec
exists as a translator:That is used by the
tower
-based gRPC service to decode a message in the stream.Isn't using using
rust-protobuf
withtonic
(just 😅) the following steps?Codec
here liketonic::codec::prost::ProstCodec
tonic-build
I'm assuming it is straightforward due to the
Codec
trait, so kind of surprised I couldn't find an implementation in an internet search forrust-protobuf tonic codec
. No one has looked into trying this before?The text was updated successfully, but these errors were encountered: