Skip to content

Commit

Permalink
tonic-build: add module for declaratively generating services
Browse files Browse the repository at this point in the history
This patch adds the `rust` module to tonic-build which provides
utilities for declaratively defining services in rust code instead of
via the traditional method of defining a service in a `proto` file.

It also enables setting a custom `Codec` to in order to use a custom
serialization format other than `protobuf`.
  • Loading branch information
bmwill committed May 5, 2022
1 parent d53520f commit ad1e3a9
Show file tree
Hide file tree
Showing 2 changed files with 446 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tonic-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ mod prost;
#[cfg_attr(docsrs, doc(cfg(feature = "prost")))]
pub use prost::{compile_protos, configure, Builder};

pub mod manual;

/// Service code generation for client
pub mod client;
/// Service code generation for Server
Expand Down
Loading

0 comments on commit ad1e3a9

Please sign in to comment.