pub fn compile_grpc_protos<Inputs, Includes, Output>(
inputs: Inputs,
includes: Includes,
output: Output,
customizations: Option<Customize>,
) -> CompileResult<()>where
Inputs: IntoIterator,
Inputs::Item: AsRef<Path>,
Includes: IntoIterator,
Includes::Item: AsRef<Path>,
Output: AsRef<Path>,
Expand description
Compiles a list a gRPC definitions to rust modules.
ยงArguments
inputs
- A list of protobuf definition paths to compile. Paths can be specified as absolute, relative to the CWD or relative to one of theincludes
paths. Note that the directory each member ofinputs
is found under must be included in theincludes
parameter.includes
- A list of of include directory paths to pass toprotoc
. Include paths can be specified either as absolute or relative to the CWD. Note that the directory each member ofinputs
is found under must be included in this parameter.output
- Directory to place the generated rust modules into.customizations
- An Option<protobuf_codegen::Customize> allowing customization options to be passed to protobuf_codegen