Skip to content
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

tonic-reflection: feature-gate server impl #1605

Merged

Conversation

A-Manning
Copy link
Contributor

Motivation

tonic-reflection cannot be used in certain environments eg. wasm, due to a dependency on the tokio runtime.

The tokio runtime is only used in tonic_reflection::server, and so it makes sense to feature-gate this module and make it a default feature, for backwards compatibility.

This PR makes it possible to use the tonic_reflection::pb module without having to build tokio.
This is useful for eg. wasm reflection clients.

Copy link
Member

@LucioFranco LucioFranco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems fine to me thanks!

@LucioFranco LucioFranco added this pull request to the merge queue Jan 25, 2024
Merged via the queue into hyperium:master with commit a1d6daa Jan 25, 2024
13 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants