Commit graph

8 commits

Author SHA1 Message Date
Emmanuel Gil Peyrot
89d24de302 receipts: Update to XEP-0184 version 1.4.0. 2019-09-20 01:41:30 +02:00
Emmanuel Gil Peyrot
5bf14b0b22 Drop dependency on try_from.
This bumps the minimum supported stable Rust version to 1.34.

The TryFrom and TryInto traits are still reexported to not break the
API, but these reexports are deprecated and will be removed in a future
release.
2019-04-12 11:06:03 +02:00
Emmanuel Gil Peyrot
0d893edb69 avatar: Bump width/height to u16
This mirrors XEP revision 1.1.2, which made width and height
xs:unsignedShort instead of xs:unsignedByte, as per common usage.
2019-04-08 21:32:57 +02:00
Emmanuel Gil Peyrot
bcd42a26e3 macros: Use a nicer syntax when declaring attributes.
The previous version had a => required|optional|default token, this was
duplicating information for Option types and didn’t look very good.

This new version looks like a type, which can be either Required<_>,
Option<_> or Default<_>, and means the same thing.
2019-02-24 20:26:42 +01:00
Emmanuel Gil Peyrot
d60feffc22 pubsub: Add a PubSubPayload trait. 2019-01-27 17:40:46 +01:00
Emmanuel Gil Peyrot
376fa9f92e avatar: Fix parsing of avatar data containing whitespace in the base64. 2019-01-27 17:17:12 +01:00
Emmanuel Gil Peyrot
b6c7a06edd avatar: Fix build with --features=disable-validation. 2019-01-25 03:45:48 +01:00
Emmanuel Gil Peyrot
35fccafc09 avatar: Add a new XEP-0084 parser. 2019-01-25 03:34:23 +01:00