xso: add feature flag marker to derive macros

This commit is contained in:
Jonas Schäfer 2024-07-26 17:11:48 +02:00
parent f798c2b5bc
commit c40023a65e

View file

@ -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