diff --git a/tower/src/lib.rs b/tower/src/lib.rs index cce43c9e9..a509b89cb 100644 --- a/tower/src/lib.rs +++ b/tower/src/lib.rs @@ -202,15 +202,20 @@ pub mod layer; #[cfg(feature = "util")] #[doc(inline)] +#[cfg_attr(docsrs, doc(cfg(feature = "util")))] pub use self::util::{service_fn, ServiceExt}; #[doc(inline)] pub use crate::builder::ServiceBuilder; + #[cfg(feature = "make")] #[doc(inline)] +#[cfg_attr(docsrs, doc(cfg(feature = "make")))] pub use crate::make::MakeService; + #[doc(inline)] pub use tower_layer::Layer; + #[doc(inline)] pub use tower_service::Service;