From 28ebe86f7a4893ec29777518d3dcdb9761442c37 Mon Sep 17 00:00:00 2001 From: jmjoy Date: Thu, 10 Jul 2025 14:51:14 +0800 Subject: [PATCH] Update documentation attributes for management and kafka modules --- src/lib.rs | 3 +-- src/reporter/mod.rs | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index fe54e29..0219367 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -16,13 +16,12 @@ #![warn(rust_2018_idioms, missing_docs)] #![warn(clippy::dbg_macro, clippy::print_stdout)] #![doc = include_str!("../README.md")] -#![cfg_attr(docsrs, feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] pub mod common; pub(crate) mod error; pub mod logging; #[cfg(feature = "management")] -#[cfg_attr(docsrs, doc(cfg(feature = "management")))] pub mod management; pub mod metrics; pub mod proto; diff --git a/src/reporter/mod.rs b/src/reporter/mod.rs index 5a4fdb1..2c82dce 100644 --- a/src/reporter/mod.rs +++ b/src/reporter/mod.rs @@ -18,7 +18,6 @@ pub mod grpc; #[cfg(feature = "kafka-reporter")] -#[cfg_attr(docsrs, doc(cfg(feature = "kafka-reporter")))] pub mod kafka; pub mod print; @@ -42,11 +41,9 @@ pub enum CollectItem { Meter(Box), /// Instance properties object. #[cfg(feature = "management")] - #[cfg_attr(docsrs, doc(cfg(feature = "management")))] Instance(Box), /// Keep alive object. #[cfg(feature = "management")] - #[cfg_attr(docsrs, doc(cfg(feature = "management")))] Ping(Box), }