Emmanuel Gil Peyrot
40aedcf184
Test the size of every struct defined here.
2018-10-26 14:26:16 +02:00
Emmanuel Gil Peyrot
07cccad356
message: Make MessagePayload a trait, and implement it on every payload.
2018-09-20 20:58:27 +02:00
Emmanuel Gil Peyrot
7f12d05fd2
Switch allow→deny(missing_docs) for the whole crate.
2018-08-08 18:48:05 +02:00
Emmanuel Gil Peyrot
93b018e5ac
macros: Remove use requirement on ns.
2018-05-14 16:30:28 +02:00
Emmanuel Gil Peyrot
d9aaa3e9ce
macros: Remove use requirement on error::Error.
2018-05-14 16:21:39 +02:00
Emmanuel Gil Peyrot
6f497027f5
macros: Remove use requirement on minidom::Element.
2018-05-14 16:17:21 +02:00
Emmanuel Gil Peyrot
292cdd059c
macros: Remove use requirement on try_from::TryFrom.
2018-05-14 16:07:15 +02:00
Emmanuel Gil Peyrot
2661259e9a
chatstates: Generate ChatState automatically.
2017-11-24 04:27:35 +00:00
Emmanuel Gil Peyrot
f85b451fcf
Add a new check_no_attributes macro, to avoid the empty list.
2017-10-31 15:47:38 +00:00
Emmanuel Gil Peyrot
ee243c4720
chatstates: Use the new helper macros to simplify parsing.
2017-10-10 18:09:58 +01:00
Emmanuel Gil Peyrot
f69f567448
Use minidom 0.6.1’s Element::has_ns(), to simplify namespace comparisons.
2017-08-27 01:04:56 +01:00
Astro
1b1661fd82
Introduce comparing with namespace support.
2017-08-19 00:04:18 +01:00
Emmanuel Gil Peyrot
d55fa8e5dd
chatstates: Prevent compilation if the module isn’t properly documented.
2017-07-29 06:26:50 +01:00
Emmanuel Gil Peyrot
7612c53f9a
attention, chatstates, eme, ping: Add a docstring on the structs.
2017-07-20 23:47:21 +01:00
Emmanuel Gil Peyrot
487dbdc6de
Replace Into<Element> with From<…> for Element.
...
This allows Element::from() to work, and since Into<Element> is
automatically implemented for any type implementing From there is no
change to existing code.
2017-07-20 20:36:13 +01:00
Emmanuel Gil Peyrot
1f43cd934b
Use TryFrom from the try_from crate, instead of the unstable feature.
...
This makes xmpp-parsers usable on stable.
2017-07-20 20:03:15 +01:00
Emmanuel Gil Peyrot
13e8507848
chatstates: Improve parsing.
2017-06-25 19:55:55 +01:00
Emmanuel Gil Peyrot
16e43c0b01
Convert all of the parsers/serialisers into consuming their parameter.
2017-05-23 23:31:33 +01:00
Emmanuel Gil Peyrot
80695edb72
chatstates, ping, presence: Check for extraneous attributes.
2017-05-21 16:44:35 +01:00
Emmanuel Gil Peyrot
e451520187
chatstates: Switch to Into/TryFrom.
2017-05-06 20:33:58 +01:00
Emmanuel Gil Peyrot
407e4cceb4
License the project under MPL-2.0.
2017-04-29 22:14:34 +01:00
Emmanuel Gil Peyrot
4128c4b9ed
chatstates: Add a serialise function.
2017-04-23 03:22:42 +01:00
Emmanuel Gil Peyrot
62d9385728
Make all parsed types implement Clone.
2017-04-21 00:41:15 +01:00
Emmanuel Gil Peyrot
7288c2c74f
Import ns itself, and remove the _NS suffix on all namespaces.
2017-04-20 23:16:12 +01:00
Emmanuel Gil Peyrot
861c933c56
body, chatstates: Fix tests.
2017-04-20 00:43:17 +01:00
Emmanuel Gil Peyrot
a9993b1281
Remove the MessagePayload trait, it was a bad idea.
2017-04-20 00:14:47 +01:00
Emmanuel Gil Peyrot
fc7a0517d3
Replace assert!()s with proper errors in parsers.
2017-04-19 23:41:54 +01:00
Emmanuel Gil Peyrot
6a0724d133
Add a MessagePayload trait, and implement it for Body and ChatState.
2017-04-19 23:21:53 +01:00
Emmanuel Gil Peyrot
69f1405b9c
Add a chatstate parser.
2017-04-19 19:15:57 +01:00