Crate soda_pool_build

Crate soda_pool_build 

Source
Expand description

This crate generates pooled gRPC clients (that uses soda-pool crate) from the original gRPC clients generated by tonic-build crate.

§Usage

fn main() -> Result<(), Box<dyn std::error::Error>> {
    soda_pool_build::configure()
        .dir("./protobuf.gen/src")
        .build_all_clients()?;
    Ok(())
}

§Output Example

Please see example/protobuf.gen for an example of generated file and example/client for its usage.

Structs§

SodaPoolBuilder
Pooled gRPC clients generator.

Enums§

BuilderError
Possible errors during pooled client generation.

Functions§

configure
Create a default SodaPoolBuilder.