Skip to content

Commit d61fb11

Browse files
committed
fix: rt: in docs.rs, annotate the module as requiring metrics-rs-integration along with rt and tokio_unstable
1 parent e1b52c9 commit d61fb11

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/lib.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,14 @@ cfg_rt! {
169169
RuntimeMetrics,
170170
RuntimeMonitor,
171171
};
172-
#[cfg(feature = "metrics-rs-integration")]
173-
pub use runtime::metrics_rs_integration::{RuntimeMetricsReporterBuilder, RuntimeMetricsReporter};
174172
}
175173

174+
#[cfg(all(tokio_unstable, feature = "rt", feature = "metrics-rs-integration"))]
175+
#[cfg_attr(
176+
docsrs,
177+
doc(cfg(all(tokio_unstable, feature = "rt", feature = "metrics-rs-integration")))
178+
)]
179+
pub use runtime::metrics_rs_integration::{RuntimeMetricsReporter, RuntimeMetricsReporterBuilder};
180+
176181
mod task;
177182
pub use task::{Instrumented, TaskMetrics, TaskMonitor};

0 commit comments

Comments
 (0)