1#![deny(unsafe_code)]
30#![deny(clippy::unwrap_used)]
31#![warn(missing_docs)]
32
33#[cfg(not(any(feature = "xml-backend-xmloxide", feature = "xml-backend-roxmltree")))]
34compile_error!(
35 "compile at least one XML backend: `xml-backend-xmloxide` or `xml-backend-roxmltree`"
36);
37
38pub mod c14n;
39pub mod document;
40pub mod encoding;
41pub mod error;
42mod hard_limits;
43#[cfg(any(feature = "xmldsig", feature = "xmlenc"))]
44mod operation;
45#[cfg(any(feature = "xmldsig", feature = "xmlenc"))]
46pub mod policy;
47#[cfg(any(feature = "xmldsig", feature = "xmlenc"))]
48pub mod provider;
49mod xml;
50
51pub use xml::IdAttributeRegistration;
52pub use xml::dom::{
53 Ancestors, Attribute, Attributes, Children, Descendants, Document, Document as XmlDomDocument,
54 ExpandedName, Namespace, Namespaces, Node, Node as XmlDomNode, NodeId, NodeId as XmlDomNodeId,
55 NodeType, PI, ParseError, ParseError as XmlDomParseError, ParsingOptions,
56 ParsingOptions as XmlDomParsingOptions, XmlBackend,
57};
58
59#[cfg(feature = "xmldsig")]
60pub mod xmldsig;
61
62#[cfg(feature = "xmlenc")]
63pub mod xmlenc;
64
65#[cfg(any(feature = "xmldsig", feature = "xmlenc"))]
66pub use document::XmlDocumentPolicy;
67pub use document::{
68 AttributeIdentity, DocumentIdentity, DocumentView, NamespaceIdentity, NodeIdentity,
69 SemanticOrder, XmlDocument, XmlDocumentError,
70};
71pub use error::XmlSecError;