42 Commits

Author SHA1 Message Date
Jonas Platte
cf5fccaccc
Simplify TryFromRaw::try_from_raw 2019-11-24 17:40:13 +01:00
Jonas Platte
a9840164cd
Derive Serialize for collection types 2019-11-11 23:26:12 +01:00
Jonas Platte
4d17769b2b
Update tests to use example.com instead of domain.com
because domain.com represents a business, while example.com is actually just an example domain
2019-11-11 20:48:24 +01:00
Jonas Platte
09378eb410 Refactor collection deserialization 2019-10-23 02:24:07 +02:00
Jonas Platte
60c817e1b0 Restore Rust 1.34.2 compatibility 2019-10-23 02:09:34 +02:00
Jonas Platte
7e5ca6e7af Simplify StrippedStateContent deserialization 2019-10-21 14:20:53 +02:00
Jonas Platte
982d978d94 Almost finish deserialize impl's 2019-10-16 21:40:30 +02:00
Jonas Platte
5ad549b3e4 Add part of the deserialization logic for collections/raw/* 2019-10-16 00:07:06 +02:00
Jonas Platte
1aaee389ec Add missing TryFromRaw implementations 2019-10-15 23:45:45 +02:00
Jonas Platte
a6c34596d7 Rename EventResultCompatible to TryFromRaw 2019-10-15 20:05:46 +02:00
Jonas Platte
9b26c60fe8 Complete EventResult API for stripped 2019-10-13 19:13:15 +02:00
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
91d564dcf8 WIP 2019-09-03 12:01:29 -07:00
Jimmy Cuadra
de23971ee4 Deny and address all warnings. 2019-07-19 15:47:14 -07:00
Jimmy Cuadra
ebc6579d81 Convert the stripped mod to the new API. 2019-07-19 14:59:45 -07:00
Jimmy Cuadra
c3f48c5be3 Use js_int types for numbers.
Closes #27.
2019-06-16 16:16:37 -07:00
Jimmy Cuadra
f4b7204f31 Derive PartialEq where possible. 2019-06-15 00:03:32 -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
8b6aeddcd6 Fix broken tests. 2019-06-13 17:48:52 -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
Jimmy Cuadra
92fcb5181f Fix typos. 2019-06-02 04:16:25 -07:00
Florian Jacob
01156ad661 Properly handle CanonicalAliasEvent and NameEvent content being absent, null or empty,
which is allowed by the spec to show those events were deleted:
https://matrix.org/docs/spec/client_server/r0.4.0.html#m-room-canonical-alias
https://matrix.org/docs/spec/client_server/r0.4.0.html#m-room-canonical-alias
2019-02-11 13:50:07 +01:00
Jonas Platte
7f18e1c32e Replace serde_derive by re-exports in serde 2019-02-06 20:12:30 +01: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
Jonas Platte
af5a8932e3 StrippedStateContent: Add sender field 2019-01-08 19:37:55 +01:00
Jimmy Cuadra
3acc5c3a93 Run rustfmt. 2018-05-18 23:54:13 -07:00
Konstantinos Sideris
a9490dbee8 Update matrix events to their latest version 2017-11-16 11:22:07 +02:00
Jonas Platte
b741ec3028 Use more descriptive names for properties with one-character-names in the spec 2017-08-04 10:35:56 +02:00
Jonas Platte
4a91932ea8 Fix a bunch more deserialization bugs 2017-08-03 22:16:52 +02:00
Jimmy Cuadra
c928c9bafc Remove de/serialize bounds from StrippedStateContent.
See https://github.com/serde-rs/serde/issues/890.
2017-04-23 02:43:34 -07: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
Jimmy Cuadra
dc8bbbb5ac Provide a better explanation of stripped events. 2016-12-20 23:10:27 -08:00
Konstantinos Sideris
1e9fe32d35 Add missing stripped StateEvents 2016-12-20 21:03:19 +02:00
Jimmy Cuadra
f57a1aec48 Derive Clone for basically everything. Close #3." 2016-10-16 16:20:25 -07:00
Jimmy Cuadra
070a6fe633 Add second generic parameter to events and add missing docs. 2016-07-02 03:33:10 -07:00
Jimmy Cuadra
68265a9387 Revert the package name to ruma-events. 2016-06-21 21:29:43 -07:00