Commit graph

32 commits

Author SHA1 Message Date
Emmanuel Gil Peyrot
96c8b05677 Do some manual formatting in macros. 2018-12-29 18:29:11 +01:00
Emmanuel Gil Peyrot
efd7bd5f2f Run cargo fmt. 2018-12-18 15:32:05 +01:00
Emmanuel Gil Peyrot
6b2dd8fe5e Run cargo fix --edition to move to Edition 2018. 2018-12-18 15:27:30 +01: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
92cdaaafcc pubsub: Document all of the modules. 2018-08-02 22:16:55 +02:00
Emmanuel Gil Peyrot
89efc89423 pubsub/event: Remove invalid empty items. 2018-08-02 22:06:34 +02:00
Emmanuel Gil Peyrot
679dd14a49 pubsub/event: Remove unused @node in item. 2018-08-02 22:05:23 +02:00
Emmanuel Gil Peyrot
c6215a9fd0 pubsub: Make item fields public. 2018-06-22 20:18:18 +02:00
Emmanuel Gil Peyrot
3fb99988d5 macros: Merge generate_element_with_children!() into generate_element!(). 2018-05-28 16:45:13 +02:00
Emmanuel Gil Peyrot
9c598fbdf9 macros: Rename generate_element_with_only_attributes!() into generate_element!(). 2018-05-28 16:42:35 +02:00
Emmanuel Gil Peyrot
a625b88fce macros: Merge all element children into a common syntax. 2018-05-28 16:29:51 +02:00
Emmanuel Gil Peyrot
412eafb363 iq: Implement the Iq*Payload traits on every possible payload. 2018-05-16 15:08:17 +02:00
Emmanuel Gil Peyrot
71dc5ad6c8 pubsub: Document the new structs and their fields. 2018-05-15 00:18:15 +02:00
Emmanuel Gil Peyrot
58a1d80b77 pubsub: Add forgotten toplevel parsing. 2018-05-14 21:32:58 +02:00
Emmanuel Gil Peyrot
fcdfc6d85a Add a PubSub module. 2018-05-14 21:04:16 +02:00
Emmanuel Gil Peyrot
d2dc77e4a3 pubsub: Move Subscription to the module. 2018-05-14 21:02:22 +02:00
Emmanuel Gil Peyrot
688ae145be pubsub: Move common attributes to the module. 2018-05-14 17:49:25 +02:00
Emmanuel Gil Peyrot
3d495ccf41 Use check_no_children!() where it makes sense. 2018-05-14 16:33:47 +02:00
Emmanuel Gil Peyrot
93b018e5ac macros: Remove use requirement on ns. 2018-05-14 16:30:28 +02:00
Emmanuel Gil Peyrot
0d4327eb42 macros: Remove use requirement on minidom::IntoAttributeValue. 2018-05-14 16:12:56 +02:00
Emmanuel Gil Peyrot
040792c242 macros: Remove use requirement on std::str::FromStr. 2018-05-14 16:11:22 +02:00
Emmanuel Gil Peyrot
5cdb2d77ab Split out DateTime parsing into its own module (implement XEP-0082). 2017-10-31 19:41:45 +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
a8cfc8e62e pubsub::event: Add more type safety. 2017-10-10 19:45:08 +01:00
Emmanuel Gil Peyrot
e1477f146b pubsub::event: Use the new helper macros to simplify parsing. 2017-10-10 19:27:29 +01:00
Astro
1b1661fd82 Introduce comparing with namespace support. 2017-08-19 00:04:18 +01:00
Emmanuel Gil Peyrot
99b9525e6f Update to jid-rs 0.2.3, which implements IntoAttributeValue on Jid. 2017-07-29 06:28:20 +01:00
Emmanuel Gil Peyrot
3b6733f38b Upgrade to minidom 0.4.4 to avoid having to redefine IntoElements for each Into<Element>. 2017-07-21 01:20:29 +01:00
Emmanuel Gil Peyrot
21cee25b27 Replace .and_then() with .map() wherever it makes sense. 2017-07-21 01:19:34 +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
0f297d2d2d Add a generate_attribute! macro, and use it for the common case. 2017-06-14 00:50:57 +01:00
Emmanuel Gil Peyrot
6c1c9d0851 Add a PubSub event parser and serialiser. 2017-06-11 14:48:31 +01:00