26 Commits

Author SHA1 Message Date
Jonas Platte
c20d79db7d Inline try_from method into EventResultCompatible 2019-10-08 21:28:18 +02:00
Jonas Platte
05562a48a3 WIP 2019-09-29 13:30:51 +02:00
Jonas Platte
297bae4cbb Remove FromStr, TryFrom<&'_ str> implementations 2019-09-29 10:56:15 +02:00
Jimmy Cuadra
de23971ee4 Deny and address all warnings. 2019-07-19 15:47:14 -07:00
Jimmy Cuadra
7eadc017a5 Convert collections modules to the new API. 2019-07-19 14:59:45 -07:00
Jimmy Cuadra
04cdc96b8b Add m.push_rules. 2019-06-15 03:26:50 -07:00
Jimmy Cuadra
a0ee826828 Add E2EE events to EventType and collections types. 2019-06-14 23:12:18 -07:00
Jimmy Cuadra
12212789b3 Future-proof enums with a __Nonexhaustive variant.
This can be replaced with the #[non_exhaustive] compiler attribute once
it's stabilized.
2019-06-14 18:18:47 -07:00
Jimmy Cuadra
add7ef0d8b Add blank lines to make type definitions easier to read. 2019-06-14 14:02:03 -07:00
Jimmy Cuadra
668e8b2239 Add m.room.tombstone. 2019-06-13 01:34:05 -07:00
Jimmy Cuadra
9836222b73 Add m.room.server_acl. 2019-06-13 01:24:00 -07:00
Jimmy Cuadra
9ad9776033 Add m.sticker. 2019-06-13 00:59:14 -07:00
Jimmy Cuadra
0fdf51598f Add m.ignored_user_list. 2019-06-13 00:43:54 -07:00
Jimmy Cuadra
ba2538dda9 Update existing events for spec r0.5.0 and add m.fully_read and
m.room.message.feedback.
2019-06-12 16:20:10 -07:00
Jimmy Cuadra
16347d7209 Add rustfmt and clippy to CI and address clippy warnings. 2019-06-02 18:42:36 -07:00
Jonas Platte
1b2cd339cb Update to Rust 2018 2019-01-16 00:13:10 +01:00
Jonas Platte
6f093f70ed Use nested imports, misc. import changes
* Bring imports into a consistent order (std, crates, internal)
* Replace super::super-imports by crate-relative ones
2019-01-16 00:13:10 +01:00
Jimmy Cuadra
3acc5c3a93 Run rustfmt. 2018-05-18 23:54:13 -07:00
Konstantinos Sideris
3a62aaf4c7 Add m.room.pinned_events 2017-11-27 17:08:51 +02:00
Konstantinos Sideris
0635fbae53 Add m.direct event 2017-11-16 11:22:08 +02:00
Jimmy Cuadra
edefffe220 Replace try macro with question mark. 2017-04-21 04:05:30 -07:00
Jimmy Cuadra
dee5cc91bc Update serde to 1.0. 2017-04-21 03:53:11 -07:00
Jimmy Cuadra
f01b722ae2 Update serde to 0.9. 2017-01-26 01:23:38 -08:00
Konstantinos Sideris
85504cd7a7 Derive Clone and Debug for collections 2016-12-13 03:32:22 +02:00
Jimmy Cuadra
56457e1bb4 Implement Deserialize and Serialize for collection types. 2016-12-09 18:28:39 -08:00
Jimmy Cuadra
c92ce9eeb1 Add types to support heterogeneous collections of events. 2016-12-08 18:10:19 -08:00