From 124a4b56d414e4618823e8d8888d558fd57c7181 Mon Sep 17 00:00:00 2001 From: glendc Date: Mon, 4 Dec 2023 23:36:05 +0100 Subject: [PATCH] ensure that re-exported symbols show feature label in root closes #743 --- tower/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tower/src/lib.rs b/tower/src/lib.rs index 073fd016f..d4e53a370 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;