-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
api: Consider enabling (or having a feature for) tonic's "compression" feature #349
Comments
Hmm. I'm not sure if we should forward all of I agree that the "compression" feature is often useful and should typically be enabled, but if we start adding feature flags to enable specific On the other hand, the |
That's a completely reasonable argument, and I agree that it should really be up to the application's choice of But therein lies the problem -- right now the application can't choose to use the Specifically, errors like:
when the application has I'd be more than happy if the application can choose 👍 |
Ah, hmm...so it seems like the issue here is that we've checked in the generated Rust code for the protos, rather than generating them every time the crate is built. This was changed in #318 in order to remove the build-time dependency on However, it seems like an unfortunate consequence of that change is that now, the |
Yeah, exactly! Ironically I found this issue because I wanted to generate our own protos and remove the build-time dependency. Generating them turned on compression, and, here we are. I'm good with any solution, but yeah, non-kosher feature flags are rough. |
I think I may have an angle that can allow us to remove the |
I just opened a PR on |
Hi, is there any solution for this? How could I compile if I rely on compression flag |
It looks like @neoeinstein's upstream PR hyperium/tonic#1004 has merged, but hasn't been released (as it's a breaking change). When I think the upstream fix is almost certainly the best solution for this issue. In the meantime, I would consider accepting a PR that changes the This would re-introduce the build-time dependency on |
I am no longer experiencing this issue now that |
We need to update our tonic dependency, I believe. But, it seems that the problem has, in fact, been fixed upstream. |
Think we can close this, right? :D |
Looks like I forgot to publish a release. 😓 |
What problem are you trying to solve?
Compiling
console-subscriber
into a package that already has some protos and tonic compiled in.If these protos are using tonic's
compression
feature, they will enable a couple of fields (accept_compression_encodings
,send_compression_encodings
) that appear inconsole-api
's generated protobufs that currently expect a unit.How should the problem be solved?
Regenerate
console-api
's protos with tonic's compression turned on (it ought to be backward compatible if it's on)Any alternatives you've considered?
Allow a feature, either through
console-subscriber
through toconsole-api
to optionally enable the compression featureHow would users interact with this feature?
No response
Would you like to work on this feature?
maybe
The text was updated successfully, but these errors were encountered: