Emmanuel Gil Peyrot
5df585ca40
data_forms, ibr, message, presence, roster: Always use into_iter.
2017-07-20 23:09:22 +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
ad1d4adcec
message: Add a simpler way to create a Message.
2017-06-26 19:47:26 +01:00
Emmanuel Gil Peyrot
216f6f8389
Fix build and compilation.
2017-06-14 01:57:02 +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
453a3635fd
message: Remove extra clones, and simplify Into<Element>.
2017-05-24 21:40:11 +01:00
Emmanuel Gil Peyrot
21b92621f0
iq, message: Remove useless clone on unknown element.
2017-05-24 21:32:04 +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
d61d09f5b7
hashes, presence, message, iq, disco: Use get_attr!.
2017-05-22 19:00:04 +01:00
Emmanuel Gil Peyrot
545ce29282
message: Add forgotten origin-id payload.
2017-05-21 20:15:39 +01:00
Emmanuel Gil Peyrot
d680c31cf9
iq, message: Wire up MAM to the payloads.
2017-05-19 02:58:35 +01:00
Emmanuel Gil Peyrot
2b8bcebfd9
message, iq, presence: Return an Unknown instead of an error when the element is unknown.
2017-05-19 02:09:23 +01:00
Emmanuel Gil Peyrot
e52817e5cd
message: Avoid identical match branches.
2017-05-18 23:14:07 +01:00
Emmanuel Gil Peyrot
bbdf38d58b
message: Stop parsing the payloads automatically.
2017-05-18 23:06:22 +01:00
Emmanuel Gil Peyrot
36b0bead49
message: Add stanza-id as a direct payload.
2017-05-18 23:09:30 +01:00
Emmanuel Gil Peyrot
4ec92b16ac
Fix most clippy warnings.
2017-05-07 15:23:06 +01:00
Emmanuel Gil Peyrot
2b29748e6b
message: Add support for the <thread/> element.
2017-05-07 15:09:18 +01:00
Emmanuel Gil Peyrot
da31e72357
message: Fix wrong parsing of the <body/> element, and add a test for it.
2017-05-07 15:06:11 +01:00
Emmanuel Gil Peyrot
4278c8ce2b
message: Add support for the <subject/> element.
2017-05-07 15:10:04 +01:00
Emmanuel Gil Peyrot
4142107965
message: Merge body in this module, and make it support xml:lang.
2017-05-06 21:38:23 +01:00
Emmanuel Gil Peyrot
f971cbd5c9
message: Switch to Into/TryFrom.
2017-05-06 21:21:34 +01:00
Emmanuel Gil Peyrot
04d90f22ee
stanza_error: Switch to Into/TryFrom.
2017-05-06 21:13:53 +01:00
Emmanuel Gil Peyrot
2b96751e5f
eme: Switch to Into/TryFrom.
2017-05-06 21:03:42 +01:00
Emmanuel Gil Peyrot
0f58e650b7
delay: Switch to Into/TryFrom.
2017-05-06 20:42:12 +01:00
Emmanuel Gil Peyrot
e451520187
chatstates: Switch to Into/TryFrom.
2017-05-06 20:33:58 +01:00
Emmanuel Gil Peyrot
4f11a067d8
message_correct: Switch to Into/TryFrom.
2017-05-06 20:16:45 +01:00
Emmanuel Gil Peyrot
151635f5fb
receipts: Switch to Into/TryFrom.
2017-05-06 20:07:03 +01:00
Emmanuel Gil Peyrot
29725b9d4d
Update to minidom 0.3.0.
2017-05-04 01:20:22 +01:00
Emmanuel Gil Peyrot
765e8c3333
attention: Replace parse_* and serialise with TryFrom<Element> and Into<Element>.
2017-05-01 23:49:44 +01:00
Emmanuel Gil Peyrot
42abbe2927
message: Wire up stanza_error.
2017-05-01 01:04:15 +01:00
Emmanuel Gil Peyrot
407e4cceb4
License the project under MPL-2.0.
2017-04-29 22:14:34 +01:00
Emmanuel Gil Peyrot
7750aae5b5
presence, message, jingle_ft: Remove unneeded println!().
2017-04-29 06:57:20 +01:00
Emmanuel Gil Peyrot
d824a161b6
message: Implement IntoElements.
2017-04-29 03:50:20 +01:00
Emmanuel Gil Peyrot
c81509744f
lib, message, jingle_ft: Remove unused imports.
2017-04-23 15:32:38 +01:00
Emmanuel Gil Peyrot
5e7ad720c3
Add a message parser, along with a dependency on jid.
2017-04-23 15:13:03 +01:00