kuchikiki/
lib.rs

1/*!
2
3Kuchikiki (口利き) is an HTML tree manipulation library for Rust.
4
5*/
6
7#![deny(missing_docs)]
8
9#[macro_use]
10extern crate html5ever;
11
12mod attributes;
13mod cell_extras;
14pub mod iter;
15mod node_data_ref;
16mod parser;
17mod select;
18mod serializer;
19#[cfg(test)]
20mod tests;
21mod tree;
22
23pub use attributes::{Attribute, Attributes, ExpandedName};
24pub use node_data_ref::NodeDataRef;
25pub use parser::{parse_fragment, parse_html, parse_html_with_options, ParseOpts, Sink};
26pub use select::{Selector, SelectorCache, Selectors, Specificity};
27pub use tree::{Doctype, DocumentData, ElementData, Node, NodeData, NodeRef};
28
29/// This module re-exports a number of traits that are useful when using Kuchikiki.
30/// It can be used with:
31///
32/// ```rust
33/// use kuchikiki::traits::*;
34/// ```
35pub mod traits {
36    pub use crate::iter::{ElementIterator, NodeIterator};
37    pub use html5ever::tendril::TendrilSink;
38}