Skip to content

Commit e4cd6b6

Browse files
committed
fix: rt: in docs.rs, lists metrics-rs-integration feature dependency
1 parent 77aba22 commit e4cd6b6

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)