tower_grpc/
lib.rs

1#![doc(html_root_url = "https://docs.rs/tower-grpc/0.1.1")]
2#![deny(missing_debug_implementations, rust_2018_idioms)]
3// TODO: enable when there actually are docs
4// #![deny(missing_docs)]
5#![cfg_attr(test, deny(warnings))]
6
7//! gRPC client and server implementation based on Tower.
8
9pub mod client;
10pub mod generic;
11pub mod metadata;
12
13mod body;
14mod error;
15mod request;
16mod response;
17mod status;
18
19pub use crate::body::{Body, BoxBody};
20pub use crate::request::Request;
21pub use crate::response::Response;
22pub use crate::status::{Code, Status};
23
24#[cfg(feature = "protobuf")]
25pub mod server;
26
27/// Type re-exports used by generated code
28#[cfg(feature = "protobuf")]
29pub mod codegen;
30
31#[cfg(feature = "protobuf")]
32mod codec;
33
34#[cfg(feature = "protobuf")]
35pub use crate::codec::{Encode, Streaming};