1//! A crate parsing common XMPP elements into Rust structures.
2//!
3//! Each module implements a `parse` function, which takes a minidom
4//! `Element` reference and returns `Some(MessagePayload)` if the parsing
5//! succeeded, None otherwise.
6//!
7//! Parsed structs can then be manipulated internally, and serialised back
8//! before being sent over the wire.
9
10extern crate minidom;
11extern crate jid;
12extern crate base64;
13extern crate digest;
14
15/// Error type returned by every parser on failure.
16pub mod error;
17/// XML namespace definitions used through XMPP.
18pub mod ns;
19
20/// RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core
21pub mod message;
22/// RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core
23pub mod presence;
24/// RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core
25pub mod iq;
26
27/// RFC 6121: Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence
28pub mod body;
29/// RFC 6121: Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence
30pub mod status;
31
32/// XEP-0004: Data Forms
33pub mod data_forms;
34
35/// XEP-0030: Service Discovery
36pub mod disco;
37
38/// XEP-0047: In-Band Bytestreams
39pub mod ibb;
40
41/// XEP-0085: Chat State Notifications
42pub mod chatstates;
43
44/// XEP-0166: Jingle
45pub mod jingle;
46
47/// XEP-0184: Message Delivery Receipts
48pub mod receipts;
49
50/// XEP-0199: XMPP Ping
51pub mod ping;
52
53/// XEP-0203: Delayed Delivery
54pub mod delay;
55
56/// XEP-0221: Data Forms Media Element
57pub mod media_element;
58
59/// XEP-0224: Attention
60pub mod attention;
61
62/// XEP-0234: Jingle File Transfer
63pub mod jingle_ft;
64
65/// XEP-0261: Jingle In-Band Bytestreams Transport Method
66pub mod jingle_ibb;
67
68/// XEP-0300: Use of Cryptographic Hash Functions in XMPP
69pub mod hashes;
70
71/// XEP-0308: Last Message Correction
72pub mod message_correct;
73
74/// XEP-0380: Explicit Message Encryption
75pub mod eme;
76
77/// XEP-0390: Entity Capabilities 2.0
78pub mod ecaps2;