Replies: 1 comment 1 reply
-
I think you want to use https://docs.rs/tonic-build/latest/tonic_build/struct.Builder.html#method.file_descriptor_set_path in the repo that contains the protobuf files and embed the fds into that code. I think you can use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've added tonic_reflection 0.6 to my Cargo.toml and added the reflection service, but it looks like I need to load the file descriptor set from the tonic_build output. I don't have that to hand.
Some context:
I am now writing code in a private repo (broker-service), and need to add the reflection service:
I don't currently build the file descriptor set via include_file_descriptor_set. Do I "have" to do that, and ship with my ledger-models crate?
I'd prefer to do it dynamically if possible from the Rust-generated files. E.g. the service rust file or request rust file.
Any pointers as to whether I must ship the file descriptor set from the tonic_build, or is there a way to do this dynamically?
Thanks in advance for any help!
Beta Was this translation helpful? Give feedback.
All reactions