461 Commits

Author SHA1 Message Date
Jonas Platte
1aaee389ec Add missing TryFromRaw implementations 2019-10-15 23:45:45 +02:00
Jonas Platte
09b8de5b6e Introduce FromRaw in addition to TryFromRaw 2019-10-15 20:26:30 +02:00
Jonas Platte
a6c34596d7 Rename EventResultCompatible to TryFromRaw 2019-10-15 20:05:46 +02:00
Jonas Platte
516f027aca temporarily add panicing Serialize impl for EventResult 2019-10-14 22:20:31 +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
Jonas Platte
fbd8b2be54 Apply clippy suggestion 2019-09-27 23:58:05 +02:00
Jonas Platte
fb0f8a4d91 Integrate ruma-events-macros into the repository 2019-09-13 22:32:17 +02:00
Jonas Platte
883a9566d2 Add 'ruma-events-macros/' from commit '659dc963949cdb3d928d9f5d3ed9a49e1e2b6158'
git-subtree-dir: ruma-events-macros
git-subtree-mainline: 91d564dcf812196f7497fe93ea5591eab8d83d1d
git-subtree-split: 659dc963949cdb3d928d9f5d3ed9a49e1e2b6158
2019-09-13 22:17:22 +02:00
Jimmy Cuadra
91d564dcf8 WIP 2019-09-03 12:01:29 -07:00
Jimmy Cuadra
659dc96394
Merge pull request #1 from ahmedcharles/update
Update dependencies.
2019-09-02 19:31:04 -07:00
Ahmed Charles
b08f1a964d Update dependencies. 2019-09-01 10:26:57 +00:00
Jimmy Cuadra
f1927b2e5b Replace FromStr/TryFrom impls with Deserialize using EventResult. 2019-08-22 17:38:01 -07:00
Jimmy Cuadra
c309eed2ae impl Deserialize for m.room.server_acl 2019-08-06 15:23:40 -07:00
Jimmy Cuadra
db89aad22c impl Deserialize for m.room.canonical_alias 2019-08-06 15:19:55 -07:00
Jimmy Cuadra
35e5ed9491 impl Deserialize for m.room.power_levels 2019-08-06 15:15:33 -07:00
Jimmy Cuadra
2a2dcf6801 impl Deserialize for m.room.name 2019-08-06 15:07:38 -07:00
Jimmy Cuadra
bd64b7f4be impl Deserialize for m.room.message 2019-08-06 15:02:05 -07:00
Jimmy Cuadra
2acca3e3ef impl Deserialize for m.room.encrypted 2019-08-06 14:54:25 -07:00
Jimmy Cuadra
c69e1c6204 impl Deserialize for m.ignored_user_list 2019-08-06 14:45:18 -07:00
Jimmy Cuadra
685a61954c Ensure validation logic for m.key.verification.start is run when deserializing the event, not just the content. 2019-08-06 01:25:29 -07:00
Jimmy Cuadra
4984868e21 EventResult::into --> EventResult::into_result 2019-08-05 16:32:14 -07:00
Jimmy Cuadra
30c1ef07dc impl Deserialize m.key.verification.start 2019-08-05 15:55:25 -07:00
Jimmy Cuadra
04cc113473 Add EventResult type for fallible deserialization. 2019-08-05 15:54:59 -07:00
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