Commit graph

334 commits

Author SHA1 Message Date
Emmanuel Gil Peyrot
5543d71599 attention: Use super::* in tests like every other module. 2017-07-20 20:53:59 +01:00
Emmanuel Gil Peyrot
cc563b46d2 ecaps2, forwarding, jingle_s5b, mam: Replace complex into expressions with .map(Element::from). 2017-07-20 20:52:25 +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
5ec921fa6f attention: Add missing unknown attribute check. 2017-07-20 20:11:00 +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
0fcbf11644 iq: Split IqPayload into all three possible types. 2017-07-20 18:31:17 +01:00
Emmanuel Gil Peyrot
76a46559b8 disco: Split query and result. 2017-07-20 17:39:59 +01:00
Emmanuel Gil Peyrot
945ae350ac Add a jingle message parser and serialiser. 2017-07-15 11:38:44 +01:00
Emmanuel Gil Peyrot
161e5dcc9b jingle: Type Content::name better. 2017-07-15 11:37:29 +01:00
Emmanuel Gil Peyrot
4c1a716945 Added tag v0.6.0 for changeset f85d0ec5b301 2017-06-27 22:31:50 +01:00
Emmanuel Gil Peyrot
a2855112ba Release version 0.6.0. 2017-06-27 22:25:33 +01:00
Emmanuel Gil Peyrot
7ddb1b8301 ChangeLog: Add 0.6.0 release notes. 2017-06-27 22:19:06 +01:00
Emmanuel Gil Peyrot
6ea175ad2e Cargo.toml: Update the hashing libraries. 2017-06-27 22:25:13 +01:00
Emmanuel Gil Peyrot
244c9b2710 presence: Remove unused import in tests. 2017-06-27 22:21:35 +01:00
Maxime “pep” Buquet
98878042dd Use the generate_attribute macro in muc::user 2017-06-27 00:14:40 +01:00
Maxime “pep” Buquet
27cf9a6298 muc::Muc and muc::MucUser 2017-06-26 23:07:12 +01:00
Emmanuel Gil Peyrot
8ac4602240 presence: Add a simpler way to create a Presence. 2017-06-26 19:49:16 +01:00
Emmanuel Gil Peyrot
ad1d4adcec message: Add a simpler way to create a Message. 2017-06-26 19:47:26 +01:00
Emmanuel Gil Peyrot
96fe2d200e roster: Fix group serialisation and add a test. 2017-06-25 23:27:38 +01:00
Emmanuel Gil Peyrot
4338d9d638 jingle_s5b: Make jid a Jid and not a String. 2017-06-25 22:20:24 +01:00
Emmanuel Gil Peyrot
f6b222f49a jingle_ibb: Strengthen sid’s type safety. 2017-06-25 22:15:18 +01:00
Emmanuel Gil Peyrot
a219501fed jingle, jingle_ft: Use the new generate_id! macro to simplify Sid/Cid generation. 2017-06-25 22:14:51 +01:00
Emmanuel Gil Peyrot
95a19b4bb4 lib: Implement a generate_id! macro. 2017-06-25 22:14:21 +01:00
Emmanuel Gil Peyrot
3ea0c45337 jingle_s5b: Strengthen type safety for ids. 2017-06-25 21:38:58 +01:00
Emmanuel Gil Peyrot
f428ee070d Add an IBR parser. 2017-06-25 21:03:48 +01:00
Emmanuel Gil Peyrot
a48565e171 data_forms: Fix FORM_TYPE, <title/> and <instructions/> serialisation. 2017-06-25 20:13:43 +01:00
Emmanuel Gil Peyrot
13e8507848 chatstates: Improve parsing. 2017-06-25 19:55:55 +01:00
Emmanuel Gil Peyrot
eca588ad6f Cargo.toml: Update the chrono dependency to 0.4.0. 2017-06-22 01:41:10 +01:00
Emmanuel Gil Peyrot
17798190cf error: Implement fmt::Display and error::Error. 2017-06-17 03:36:12 +01:00
Emmanuel Gil Peyrot
6f69f2d7d9 jingle_ft: Parse <date/> into a proper DateTime. 2017-06-16 20:37:48 +01:00
Emmanuel Gil Peyrot
e7f0c45da5 jingle: Fix sid test. 2017-06-14 09:19:06 +01:00
Emmanuel Gil Peyrot
48d340120c jingle: Specialise Sid to get an increased type safety. 2017-06-14 02:28:42 +01:00
Emmanuel Gil Peyrot
216f6f8389 Fix build and compilation. 2017-06-14 01:57:02 +01:00
Emmanuel Gil Peyrot
393402032c jingle: Add a comment. 2017-06-14 00:59:37 +01:00
Emmanuel Gil Peyrot
ebc7582250 Move the Default implementation into more generate_attribute!. 2017-06-14 00:53:18 +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
9955c1131b ns: Remove now useless 'static lifetime. 2017-06-12 22:49:27 +01:00
Emmanuel Gil Peyrot
c74e72b676 Added tag v0.5.0 for changeset 06ce4bd0beeb 2017-06-11 15:01:46 +01:00
Emmanuel Gil Peyrot
019848c864 Release version 0.5.0. 2017-06-11 14:58:34 +01:00
Emmanuel Gil Peyrot
7202a6e190 ChangeLog: Add release notes for version 0.5.0. 2017-06-11 14:58:05 +01:00
Emmanuel Gil Peyrot
60521298d6 Cargo.toml: Bump base64, improve performances and reduce unsafe code. 2017-06-11 14:57:30 +01:00
Emmanuel Gil Peyrot
6c1c9d0851 Add a PubSub event parser and serialiser. 2017-06-11 14:48:31 +01:00
Emmanuel Gil Peyrot
334f2f78f8 data_forms: Implement IntoElements. 2017-06-11 14:42:11 +01:00
Emmanuel Gil Peyrot
88a3f507f6 idle, delay: Don’t import * from chrono::prelude. 2017-06-08 22:46:27 +02:00
Maxime “pep” Buquet
bd19341f69 Muc <x xmlns='http://jabber.org/protocol/muc#user'/> and <status /> parser 2017-05-31 02:54:47 +01:00
Maxime “pep” Buquet
c4c6528197 Muc <x xmlns='http://jabber.org/protocol/muc'/> parser 2017-05-30 22:02:56 +01:00
Emmanuel Gil Peyrot
33994c1042 hashes: Implement Eq and Hash. 2017-05-29 05:14:49 +01:00
Emmanuel Gil Peyrot
08ba164073 roster: Add a test for empty name == no name. 2017-05-29 03:42:11 +01:00
Emmanuel Gil Peyrot
7395e4b88f roster: Make an empty name be None instead.
RFC 6121 §2.4.1:
“Implementation Note: Including an empty 'name' attribute is equivalent
to including no 'name' attribute; both actions set the name to the
empty string.”
2017-05-29 03:40:34 +01:00
Emmanuel Gil Peyrot
073e208f06 iq: Wire up Roster. 2017-05-28 17:12:46 +01:00