You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2025/07/10 07:23:07 UTC
(skywalking-rust) branch master updated: Update documentation attributes for management and kafka modules (#71)
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-rust.git
The following commit(s) were added to refs/heads/master by this push:
new cc16223 Update documentation attributes for management and kafka modules (#71)
cc16223 is described below
commit cc16223b3adf2410737ae05502094ab432fb5821
Author: jmjoy <jm...@apache.org>
AuthorDate: Thu Jul 10 15:23:01 2025 +0800
Update documentation attributes for management and kafka modules (#71)
---
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<MeterData>),
/// Instance properties object.
#[cfg(feature = "management")]
- #[cfg_attr(docsrs, doc(cfg(feature = "management")))]
Instance(Box<InstanceProperties>),
/// Keep alive object.
#[cfg(feature = "management")]
- #[cfg_attr(docsrs, doc(cfg(feature = "management")))]
Ping(Box<InstancePingPkg>),
}