-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
protoc-gen-tonic: compression feature always on #6
Comments
This is one that I'll need to bring to I have a thought about how I might make that work, so let me see if I can do some dependency magic to make compression optional. |
That'd be fabulous! But yeah, it does seem like it goes to the |
Sadly my dependency hacking wasn’t successful right off, but I may have an angle to get |
I suppose these compilation errors I get are related? Is there a workaround?
|
Answering my own question. Turns out this is needed in the app
|
23: chore(deps): Update prost, tonic and pbjson dependencies. r=neoeinstein a=o-agassizii tonic 0.8.0 was recently released. Said version of tonic depends on an updated version of prost. Likewise, pbjson has recently been updated upstream to depend on the latest version of prost. See also: * hyperium/tonic#1004 * #6 (referenced in the above link) Co-authored-by: Opisthoteuthis agassizii <[email protected]>
First of all, thank you so much for making these -- this is the right way to do protobuf generation across a bigger/multi-language world, as opposed to via Rust's
build.rs
!I filed tokio-rs/console#349 over on tokio's
console-api
because I'm in sort of a catch-22. Because I generated my protos with protoc-gen-tonic, they have the "compression" feature enabled which emits, in the generation, fields that require my library consuming them to have "compression" enabled as well.That's fine if it's just me, but because
console-api
has their own generated protos with compression disabled, I get trouble when I try to compileconsole-subscriber
into my application because I've already got tonic and it enables "compression" which breaks their generated protos' expectations.IMO, they should just have a more general proto committed. But I figured I'd send an issue along in case other folks see it, or to see if there's a convenient way to enable or disable the compression features from the generated tonic files.
The text was updated successfully, but these errors were encountered: