Commit graph

21 commits

Author SHA1 Message Date
Emmanuel Gil Peyrot
292cdd059c macros: Remove use requirement on try_from::TryFrom. 2018-05-14 16:07:15 +02:00
Emmanuel Gil Peyrot
682bb34b0b delay: Use the new helper macro. 2017-11-23 16:19:24 +00:00
Emmanuel Gil Peyrot
35258482ba delay: Simplify parsing and add more checks. 2017-10-31 22:27:13 +00: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
99b9525e6f Update to jid-rs 0.2.3, which implements IntoAttributeValue on Jid. 2017-07-29 06:28:20 +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
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
88a3f507f6 idle, delay: Don’t import * from chrono::prelude. 2017-06-08 22:46:27 +02:00
Emmanuel Gil Peyrot
d1a7d222f0 delay: Use chrono to parse the stamp. 2017-05-27 12:29:21 +01:00
Emmanuel Gil Peyrot
56b7785942 delay: Remove clones. 2017-05-25 01:04:51 +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
e3f1f31718 delay, eme, stanza_error: Use get_attr!. 2017-05-23 01:02:23 +01:00
Emmanuel Gil Peyrot
0f58e650b7 delay: Switch to Into/TryFrom. 2017-05-06 20:42:12 +01:00
Emmanuel Gil Peyrot
29725b9d4d Update to minidom 0.3.0. 2017-05-04 01:20:22 +01:00
Emmanuel Gil Peyrot
7b6d444f03 delay: Use Jid for from attribute. 2017-05-01 01:50:18 +01:00
Emmanuel Gil Peyrot
407e4cceb4 License the project under MPL-2.0. 2017-04-29 22:14:34 +01:00
Emmanuel Gil Peyrot
4dc585f1c9 delay: Implement IntoElements. 2017-04-29 03:50:02 +01:00
Emmanuel Gil Peyrot
c6036194b1 delay: Add a serialise function. 2017-04-23 03:21:53 +01:00
Emmanuel Gil Peyrot
d39d13b7cb delay: Correctly parse the content data. 2017-04-21 04:01:14 +01:00
Emmanuel Gil Peyrot
cfadff3bc9 Add a Delayed Delivery parser. 2017-04-21 03:57:34 +01:00