From b7a178f7336471b019679b26cdf0d221da154479 Mon Sep 17 00:00:00 2001 From: Anatoly Ikorsky Date: Tue, 25 Apr 2023 12:38:26 +0300 Subject: [PATCH] docsrs: add xml feature tag --- Cargo.toml | 5 +++++ src/xml.rs | 1 + 2 files changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index aba6840..93bca87 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,3 +22,8 @@ xml = ["dep:xml-rs"] [dependencies] xml-rs = { version = "0.8", optional = true } + +[package.metadata.docs.rs] +rustdoc-args = ["--cfg", "docsrs"] +no-default-features = true +features = ["default", "xml"] diff --git a/src/xml.rs b/src/xml.rs index 3c43132..59f08e4 100644 --- a/src/xml.rs +++ b/src/xml.rs @@ -88,6 +88,7 @@ pub trait XmlRootElement { /// # Ok(()) /// # } /// ``` +#[cfg_attr(docsrs, doc(cfg(feature = "xml")))] pub trait MarcXml<'a> where Self: XmlRootElement>,