Skip to content

Implements gRPC Server Reflection#539

Closed
sgg wants to merge 6 commits intohyperium:masterfrom
sgg:sgg/tonic-reflection
Closed

Implements gRPC Server Reflection#539
sgg wants to merge 6 commits intohyperium:masterfrom
sgg:sgg/tonic-reflection

Conversation

@sgg
Copy link
Contributor

@sgg sgg commented Jan 18, 2021

Motivation

Please see #165 for more details on the motivation and #340 for discussion on the original implementation.

Solution

This PR updates @jen20's implementation and adds some basic unit tests.

jen20 and others added 6 commits May 20, 2020 23:06
This commit adds a new option, `include_file_descriptor_set` to the
tonic build configuration to in order to include the encoded protocol
buffers `FileDescriptorSet` in `OUT_DIR`.

It also adds a new macro `include_file_descriptor_set!`, to make it easy
to include the well-known output path as a byte array in application
source code.
This change updates jen20's work in hyperium#340 to work
with the file descriptor set changes that landed in prost 0.7.

* Updates branch with new changes from master
* Updates server to use tokio 1.0 symantics
* `tonic_build::Builder::include_file_descriptor_set`
  -> `file_descriptor_set_path`, which matchesprost.
* The reflection server now returns UNIMPLEMENTED rather than NOT_FOUND
  when unsupported methods are called.
@sgg sgg changed the title Sgg/tonic reflection Implements gRPC Server Reflection Jan 18, 2021
@sgg
Copy link
Contributor Author

sgg commented Jan 23, 2021

Closing in favor of #340 which has recently been updated. cc @LucioFranco

@sgg sgg closed this Jan 23, 2021
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