[][src]Function solana_libra_grpcio_client::client_stub_gen

pub fn client_stub_gen<P: AsRef<Path>>(
    from: &[&str],
    includes: &[&str],
    to: P
) -> CompileResult<()>

Generate client trait for the GRPC Client

  • from - the files with the services to generate client traits for
  • includes - a vector of the parent folder of the files from from and all their includes.
  • to - a path to a folder to store the generated files.

Generates client trait for the GRPC service defined in the first argument. from argument includes

Example use:

client_stub_gen(&["src/proto/myservice.proto"], vec![], "src/proto");