Emmanuel Gil Peyrot
4b3ced042e
ecaps2, jingle_s5b: Replace drain() with into_iter().
2017-07-26 00:04:20 +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
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
4338d9d638
jingle_s5b: Make jid a Jid and not a String.
2017-06-25 22:20:24 +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
3ea0c45337
jingle_s5b: Strengthen type safety for ids.
2017-06-25 21:38:58 +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
ee34bc1a86
jingle_s5b: Remove unused .to_owned() during serialisation.
2017-05-28 01:47:12 +01:00
Emmanuel Gil Peyrot
6794b34714
Cargo.toml: Update minidom to 0.4.3 to use its new IntoAttributeValue implementation on numbers.
2017-05-27 23:18:15 +01:00
Emmanuel Gil Peyrot
9bd1e7f295
jingle_s5b: Remove the clones.
2017-05-24 23:00:38 +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
ca9a250efd
jingle_s5b: Obtain attributes using the get_attr! macro.
2017-05-21 21:00:34 +01:00
Emmanuel Gil Peyrot
4ec92b16ac
Fix most clippy warnings.
2017-05-07 15:23:06 +01:00
Emmanuel Gil Peyrot
bb12168c41
jingle_s5b: Handle the forgotten case of an empty transport element, see §2.2.
2017-05-06 13:54:16 +01:00
Emmanuel Gil Peyrot
828b88e5b2
Add a Jingle SOCKS5 Bytestreams Transport implementation.
2017-05-06 12:49:30 +01:00