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
This is an unconventional use of tonic, but I find myself wanting to use utilities in tonic/src/codec/compression.rs such as CompressionEncoding::from_encoding_header and decompress, but these functions are not public. Is there a strong objection to making these functions public? I know people would prefer to keep the API contract as small as possible, but copy-pasting this logic just doesn't feel right. More than happy to submit the PR if it would be approvable.
Alternatives
I suppose I could just copy and paste the code into another crate.
The text was updated successfully, but these errors were encountered:
Feature Request
Crates
tonic
Motivation
Code re-use.
Proposal
This is an unconventional use of
tonic
, but I find myself wanting to use utilities intonic/src/codec/compression.rs
such asCompressionEncoding::from_encoding_header
anddecompress
, but these functions are not public. Is there a strong objection to making these functions public? I know people would prefer to keep the API contract as small as possible, but copy-pasting this logic just doesn't feel right. More than happy to submit the PR if it would be approvable.Alternatives
I suppose I could just copy and paste the code into another crate.
The text was updated successfully, but these errors were encountered: