Skip to main content

sup_xml_tree/
lib.rs

1//! Tree types for the SupXML document model.
2//!
3//! This crate defines the in-memory representation of an XML document —
4//! the libxml2-shaped arena DOM in [`dom`].  You rarely need to depend on
5//! this crate directly; everything is re-exported from the top-level
6//! `sup-xml` crate.
7//!
8//! # Unsafe policy
9//!
10//! The [`dom`] module contains *contained* unsafe for the self-referential
11//! `Document` wrapper (the `Document` owns a `Bump` and the root pointer into
12//! that `Bump`).  See [`dom`] module docs for the safety argument.
13#![deny(unsafe_code)]  // see CONTRIBUTING.md § "Unsafe policy" — `dom` module opts in locally
14
15pub mod dict;
16pub mod dom;
17
18pub use dict::Dict;
19pub use dom::{HtmlDoctype, HtmlMeta, QuirksMode, UnparsedEntity};