tonic
tonic copied to clipboard
prost_build::Config should be re-exported in tonic_build
Feature Request
Crates
tonic-build
Motivation
tonic_build::Builder::compile_with_config takes a prost_build::Config as an argument, which requires the additional dependency of prost-build.
Since tonic_build already re-exports prost::{compile_fds, compile_protos, configure, Builder}, I think this compile_with_config should be callable without prost-build as a separate dependency
(I need to use compile_with_config, so that I can enable_type_names.)
Proposal
I propose we additionally re-export prost_build::Config and update the documentation here to include an example of using compile_with_config.
I'll be happy to create the PR, but first want to get feedback.
Alternatives
¯_(ツ)_/¯