diff --git a/tonic/src/transport/mod.rs b/tonic/src/transport/mod.rs index 1b3b19d83..0f84ddd65 100644 --- a/tonic/src/transport/mod.rs +++ b/tonic/src/transport/mod.rs @@ -18,6 +18,7 @@ //! ## Client //! //! ```no_run +//! # #[cfg(feature = "rustls")] //! # use tonic::transport::{Channel, Certificate, ClientTlsConfig}; //! # use std::time::Duration; //! # use tonic::body::BoxBody; @@ -45,6 +46,7 @@ //! ## Server //! //! ```no_run +//! # #[cfg(feature = "rustls")] //! # use tonic::transport::{Server, Identity, ServerTlsConfig}; //! # use tower::Service; //! # #[cfg(feature = "rustls")]