[help] Tonic-build: how to generate generic service definition?

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • tonic

    A native gRPC client & server implementation with async/await support.

    you mean something like this: https://github.com/hyperium/tonic/blob/master/examples/build.rs ? Then the answer is yes, tonic build will generate server & client stubs at compile time.

  • prost

    PROST! a Protocol Buffers implementation for the Rust Language

    Hi r/rust, I have a question regarding tonic-build (or prost-build).

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • ts-proto

    An idiomatic protobuf generator for TypeScript

    With ts-proto, I can pass a --ts_proto_opt=outputServices=generic-definitions as a flag to protoc to generate "generic service definitions". These definitions contain descriptors for each method, which allows to generate server and client stubs at runtime, and also generate strong types for them at compile time.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts