blob: 424af31d44ec9ba3b2f8d6c0ba8e4e506b4e26cd (
plain) (
blame)
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
42
43
44
|
//! # peanuts: An ergonomic (async) xml reader/writer library.
//!
//! Features:
//!
//! - Serialisation
//! - Deserialisation
//! - DOM navigation
//! - Namespacing
//! - Websocket framing
/// XML prolog declaration types.
pub mod declaration;
mod element;
mod error;
mod reader;
mod writer;
// TODO: alternative raw xml API
mod xml;
/// Result type for the crate.
pub type Result<T> = std::result::Result<T, error::Error>;
/// XML namespace URI for the `xml:` namespace prefix.
pub const XML_NS: &str = "http://www.w3.org/XML/1998/namespace";
/// XML namespace URI for the `xmlns:` namespace prefix.
pub const XMLNS_NS: &str = "http://www.w3.org/2000/xmlns/";
pub use element::Content;
pub use element::ContentBuilder;
pub use element::DeserializeResult;
pub use element::Element;
pub use element::ElementBuilder;
pub use element::FromContent;
pub use element::FromElement;
pub use element::IntoContent;
pub use element::IntoElement;
pub use error::DeserializeError;
pub use error::Error;
pub use reader::ReadableString;
pub use reader::Reader;
#[cfg(target_arch = "wasm32")]
pub use reader::WebSocketOnMessageRead;
pub use writer::Loggable;
pub use writer::Writer;
|