385 Commits

Author SHA1 Message Date
Jimmy Cuadra
e11ac61bef Only build PRs and the master branch on CI. 2019-08-03 14:01:50 -07:00
Jimmy Cuadra
0a23110786 Only build PRs and the master branch on CI. 2019-08-03 14:01:27 -07:00
Jimmy Cuadra
9e2e91d34f Bump version to 0.14.0. 2019-07-25 10:44:23 -07:00
Jimmy Cuadra
72f79ec1b6 Bump dependencies. 2019-07-25 10:43:48 -07:00
Jimmy Cuadra
8b92689750 Run cargo-audit on CI. 2019-07-23 09:57:42 -07:00
Jimmy Cuadra
87a608b9f0 Run cargo-audit on CI. 2019-07-23 09:56:54 -07:00
Jimmy Cuadra
a930395896 Bump version to 0.13.0. 2019-07-23 01:33:19 -07:00
Jimmy Cuadra
38492dd09e Split presence serialization/deserialization tests into two test cases. 2019-07-23 01:31:03 -07:00
Jimmy Cuadra
9bc2de3200 Mention that supporting types for event impl Deserialize. 2019-07-23 01:25:49 -07:00
Jimmy Cuadra
dbadf52da8 Add tests for m.room.create. 2019-07-23 01:25:43 -07:00
Jimmy Cuadra
9dbf00b12d Event traits --> Event kinds 2019-07-23 01:03:09 -07:00
Jimmy Cuadra
41ef94a617 Mention that TryFrom can be used just as FromStr. 2019-07-23 01:02:34 -07:00
Jimmy Cuadra
abac13a7dd Bound Event by FromStr. 2019-07-23 00:44:42 -07:00
Jimmy Cuadra
b88c621214 impl Display for Action 2019-07-23 00:44:37 -07:00
Jimmy Cuadra
4c7156b187 Clarify when FromStrErr is used. 2019-07-23 00:26:35 -07:00
Jimmy Cuadra
2d2e29f349 Add serialization/deserialization section to crate docs. 2019-07-23 00:25:55 -07:00
Jimmy Cuadra
de23971ee4 Deny and address all warnings. 2019-07-19 15:47:14 -07:00
Jimmy Cuadra
95c3b929a5 Use the published version of ruma-events-macros. 2019-07-19 15:10:35 -07:00
Jimmy Cuadra
cea0421523 Reword some documentation. 2019-07-19 15:06:47 -07:00
Jimmy Cuadra
7eadc017a5 Convert collections modules to the new API. 2019-07-19 14:59:45 -07:00
Jimmy Cuadra
bce1e91469 Add FromStr and TryFrom impls for m.ignored_user_list types. 2019-07-19 14:59:45 -07:00
Jimmy Cuadra
b003699048 Remove unnecessary crate:: prefixes. 2019-07-19 14:59:45 -07:00
Jimmy Cuadra
ebc6579d81 Convert the stripped mod to the new API. 2019-07-19 14:59:45 -07:00
Jimmy Cuadra
30c58ab563 Update m.key.verification.mac to work without ruma-signatures. 2019-07-19 14:58:49 -07:00
Jimmy Cuadra
d5b38354d0 Convert m.room.member to the new API. Remove dependency on
ruma-signatures.
2019-07-19 14:58:07 -07:00
Jimmy Cuadra
596fc3c3df Convert m.push_rules to the new API. 2019-07-19 14:57:39 -07:00
Jimmy Cuadra
7d1701ccce Implement FromStr for content types. 2019-07-19 14:56:38 -07:00
Jimmy Cuadra
8c8f1790f1 Clarify how InvalidInput differs from InvalidEvent. 2019-07-19 14:55:42 -07:00
Jimmy Cuadra
0f55729478 Handle both deserialization and validation errors in FromStr impls. 2019-07-19 14:54:31 -07:00
Jimmy Cuadra
4e363bc2c5 Convert m.key.verification.start to the new API. 2019-07-19 14:53:54 -07:00
Jimmy Cuadra
5c2e0e62a9 Implement Serialize for EncryptedEventContent. 2019-07-19 14:53:19 -07:00
Jimmy Cuadra
3e58ad7a8f Convert m.room.message to the new API. 2019-07-19 14:52:49 -07:00
Jimmy Cuadra
8b59318629 Sort the unsigned field alphabetically in Serialize impls. 2019-07-19 14:52:49 -07:00
Jimmy Cuadra
21351aaff0 Convert m.room.encrypted to the new API. 2019-07-19 14:52:30 -07:00
Jimmy Cuadra
0f49c5e7f6 Convert m.room.create to the new API. 2019-07-19 14:52:05 -07:00
Jimmy Cuadra
5b505cc501 Convert m.room.canonical_alias to the new API. Reorder additional fields
alphabetically. Remove unused serde attributes.
2019-07-19 14:49:05 -07:00
Jimmy Cuadra
71646445d5 Sort fields of ServerAclEvent alphabetically. 2019-07-19 14:48:38 -07:00
Jimmy Cuadra
406a007678 Add more tests. 2019-07-19 14:47:59 -07:00
Jimmy Cuadra
cc107106f0 Continue implementation of m.room.power_levels and add tests. 2019-07-19 14:47:01 -07:00
Jimmy Cuadra
090a91f78b Add new macros for implementing event traits. Fix Serialize impl for
NameEventContent. Convert m.room.power_levels to the new API.
2019-07-19 14:44:16 -07:00
Jimmy Cuadra
03099b9a8b Add InvalidInput type and convert m.room.name to the new API. 2019-07-19 14:43:24 -07:00
Jimmy Cuadra
afe44b4dda Convert m.room.server_acl to the new API. 2019-07-19 14:42:57 -07:00
Jimmy Cuadra
eaddc6dce2 Use str::parse for conversion from JSON. 2019-07-19 14:42:57 -07:00
Jimmy Cuadra
4212c9f619 Convert m.room.{aliases ,avatar ,encryption ,guest_access,
history_visibility, join_rules, member, pinned_events,
third_party_invite, tombstone, topic} to the new API.
2019-07-19 14:40:48 -07:00
Jimmy Cuadra
22c15277a7 Convert m.call.*, m.room.message.feedback, and m.room.redaction to the new
API.
2019-07-19 14:39:31 -07:00
Jimmy Cuadra
20d2482108 Convert m.key.verification.{accept,cancel,key,mac,request} and
m.room_key to the new API.
2019-07-19 14:37:21 -07:00
Jimmy Cuadra
3c70dac634 Convert m.fully_read to the new API. 2019-07-19 14:37:01 -07:00
Jimmy Cuadra
4be050b19a Convert m.tag and m.typing to the new API. 2019-07-19 14:35:21 -07:00
Jimmy Cuadra
1f3e33c77d Convert m.dummy, m.forwarded_room_key, m.presence, m.room_key_request,
and m.sticker to the new API.
2019-07-19 14:33:40 -07:00
Jimmy Cuadra
c25d76e20f Treat deserialization failure as a validation failure.
If a ruma-events type fails deserialization, but the input was valid
JSON, this should be treated as a validation failure instead of a
deserialization failure. In this case, attempt to deserialize the json
into a `serde_json::Value`, and only return a deserialization error if
that fails.
2019-07-08 03:34:42 -07:00