Function tonic_build::client::generate

source ·
pub fn generate<T: Service>(
    service: &T,
    emit_package: bool,
    proto_path: &str,
    compile_well_known_types: bool,
    build_transport: bool,
    attributes: &Attributes
) -> TokenStream
👎Deprecated since 0.8.3: Use the CodeGenBuilder::generate_client
Expand description

Generate service for client.

This takes some Service and will generate a TokenStream that contains a public module with the generated client.