1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*!

Kuchiki (朽木), a HTML/XML tree manipulation library for Rust.

*/

#![deny(missing_docs)]

extern crate cssparser;
#[macro_use] extern crate html5ever;
#[macro_use] extern crate matches;
extern crate selectors;
#[cfg(test)] extern crate tempdir;

mod attributes;
pub mod iter;
mod move_cell;
mod node_data_ref;
mod parser;
mod select;
mod serializer;
#[cfg(test)] mod tests;
mod tree;

pub use attributes::Attributes;
pub use node_data_ref::NodeDataRef;
pub use parser::{parse_html, parse_html_with_options, ParseOpts};
pub use select::{Selectors, Selector, Specificity};
pub use tree::{NodeRef, Node, NodeData, ElementData, Doctype, DocumentData};

/// This module re-exports a number of traits that are useful when using Kuchiki.
/// It can be used with:
///
/// ```rust
/// use kuchiki::traits::*;
/// ```
pub mod traits {
    pub use html5ever::tendril::TendrilSink;
    pub use iter::{NodeIterator, ElementIterator};
}