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
33994c1042
hashes: Implement Eq and Hash.
2017-05-29 05:14:49 +01:00
Emmanuel Gil Peyrot
42235c42fb
hashes: Implement From<Hash> for String.
2017-05-27 12:22:11 +01:00
Emmanuel Gil Peyrot
a6b3152add
hashes: Make the hash a Vec<u8>, to avoid base64 issues.
2017-05-25 00:30:29 +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
b22acff15e
hashes, ecaps2, jingle_ft: Make the algorithm a proper enum.
2017-05-18 23:09:29 +01:00
Emmanuel Gil Peyrot
1ec3806629
hashes: Switch to Into/TryFrom.
2017-05-06 20:46:11 +01:00
Emmanuel Gil Peyrot
407e4cceb4
License the project under MPL-2.0.
2017-04-29 22:14:34 +01:00
Emmanuel Gil Peyrot
20949c2832
hashes: Implement serialise.
2017-04-23 18:36:12 +01:00
Emmanuel Gil Peyrot
edc5961a79
hashes: Implement PartialEq on Hash.
2017-04-22 17:38:36 +01:00
Emmanuel Gil Peyrot
ea2ff8a35d
Add a hash parser.
2017-04-21 04:21:16 +01:00