tonic_rustls/
lib.rs

1//! Batteries included server and client.
2//!
3//! This module provides a set of batteries included, fully featured and
4//! fast set of HTTP/2 server and client's. These components each provide a
5//! `rustls` tls backend when the respective feature flag is enabled, and
6//! provides builders to configure transport behavior.
7//!
8//! # Features
9//!
10//! - TLS support via [rustls].
11//! - Load balancing
12//! - Timeouts
13//! - Concurrency Limits
14//! - Rate limiting
15//!
16//! [rustls]: https://docs.rs/rustls
17
18#[cfg(feature = "channel")]
19pub mod channel;
20#[cfg(feature = "server")]
21pub mod server;
22
23mod error;
24mod service;
25
26#[doc(inline)]
27#[cfg(feature = "channel")]
28pub use self::channel::{Channel, Endpoint};
29pub use self::error::Error;
30pub(crate) use self::error::BoxError;
31#[doc(inline)]
32#[cfg(feature = "server")]
33pub use self::server::Server;
34
35pub use hyper::{body::Body, Uri};
36#[cfg(feature = "tls")]
37pub use tokio_rustls::rustls::pki_types::CertificateDer;