xso: add feature flag marker to derive macros

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

View file

@ -45,6 +45,7 @@ pub use rxml_util::Item;
#[doc = include_str!("from_xml_doc.md")] #[doc = include_str!("from_xml_doc.md")]
#[doc(inline)] #[doc(inline)]
#[cfg(feature = "macros")] #[cfg(feature = "macros")]
#[cfg_attr(docsrs, doc(cfg(feature = "macros")))]
pub use xso_proc::FromXml; pub use xso_proc::FromXml;
/// # Make a struct or enum serialisable to XML /// # Make a struct or enum serialisable to XML
@ -56,6 +57,7 @@ pub use xso_proc::FromXml;
/// documented on [`macro@FromXml`]. /// documented on [`macro@FromXml`].
#[doc(inline)] #[doc(inline)]
#[cfg(feature = "macros")] #[cfg(feature = "macros")]
#[cfg_attr(docsrs, doc(cfg(feature = "macros")))]
pub use xso_proc::AsXml; pub use xso_proc::AsXml;
/// Trait allowing to iterate a struct's contents as serialisable /// Trait allowing to iterate a struct's contents as serialisable