[][src]Function protoc_grpcio::compile_grpc_protos

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>, 

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 the includes paths. Note that the directory each member of inputs is found under must be included in the includes parameter.
  • includes - A list of of include directory paths to pass to protoc. Include paths can be specified either as absolute or relative to the CWD. Note that the directory each member of inputs 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