From c40023a65e61bd03f3ae67110ecb6414e0697dc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Fri, 26 Jul 2024 17:11:48 +0200 Subject: [PATCH] xso: add feature flag marker to derive macros --- xso/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xso/src/lib.rs b/xso/src/lib.rs index 73815aa9..16b5cbb7 100644 --- a/xso/src/lib.rs +++ b/xso/src/lib.rs @@ -45,6 +45,7 @@ pub use rxml_util::Item; #[doc = include_str!("from_xml_doc.md")] #[doc(inline)] #[cfg(feature = "macros")] +#[cfg_attr(docsrs, doc(cfg(feature = "macros")))] pub use xso_proc::FromXml; /// # Make a struct or enum serialisable to XML @@ -56,6 +57,7 @@ pub use xso_proc::FromXml; /// documented on [`macro@FromXml`]. #[doc(inline)] #[cfg(feature = "macros")] +#[cfg_attr(docsrs, doc(cfg(feature = "macros")))] pub use xso_proc::AsXml; /// Trait allowing to iterate a struct's contents as serialisable