Skip to content

Commit

Permalink
docsrs: add xml feature tag
Browse files Browse the repository at this point in the history
  • Loading branch information
blackbeam committed Apr 25, 2023
1 parent 681ca25 commit b7a178f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
1 change: 1 addition & 0 deletions src/xml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ pub trait XmlRootElement<T: XmlElement> {
/// # Ok(())
/// # }
/// ```
#[cfg_attr(docsrs, doc(cfg(feature = "xml")))]
pub trait MarcXml<'a>
where
Self: XmlRootElement<Record<'a>>,
Expand Down

0 comments on commit b7a178f

Please sign in to comment.