Ragotzy.devin
14df832005
Remove special handling of custom events
2020-03-24 11:31:47 +01:00
Jonas Platte
5a79b766c7
Revert "Remove special handling of custom events"
...
This reverts commit 539dd5f31dff172b5d6559378e33982d0a0c3333.
2020-03-24 11:31:36 +01:00
Ragotzy.devin
539dd5f31d
Remove special handling of custom events
...
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2020-03-24 11:27:55 +01:00
Jonas Platte
0c6dd0ba32
Simplify proc_macro tests
...
… by moving them from ruma-events-macros to ruma-events and updating the
macros to work in different contexts (without items like FromRaw being
available at the calling crate's root)
2020-03-17 13:10:40 +01:00
Jonas Platte
016659a99c
Split impl FromRaw
generation into its own macro
2020-03-16 23:27:32 +01:00
Jonas Platte
0efe82bf88
Move FromRaw, TryFromRaw into a new module
2020-03-16 22:48:21 +01:00
poljar
12d725113b
Implement a collection for to-device events
...
To-device events are received in a sync response in a separate field of
the response.
They are sent between dirrectly without involving a room and are not
permanently stored on the serever. They are mostly used to set up
encryption between devices.
This patch implements a enum which encapsulates many of the messages
that will appear in the to-device part of a sync response.
2020-03-11 13:01:37 +01:00
Donough Liu
b03eb0261f
Add more tests for Algorithm and EventType
2020-03-10 22:36:40 +01:00
Donough Liu
0ff395fe85
Move EventType and Algorithm outside
2020-03-10 05:52:28 +08:00
Jonas Platte
1a3f6ed0b6
Derive Serialize, Deserialize impls for some enums
2019-12-15 20:26:06 +01:00
Jonas Platte
98f85df276
Remove unnecessary explicit lifetimes
2019-12-15 20:23:57 +01:00
Jonas Platte
cf5fccaccc
Simplify TryFromRaw::try_from_raw
2019-11-24 17:40:13 +01:00
Jonas Platte
b9f5fd796e
Bump MSRV to 1.36.0
2019-11-24 15:43:13 +01:00
Jonas Platte
de80253e78
Add #![warn(rust_2018_idioms)], fix warnings
2019-11-12 01:23:01 +01:00
Jonas Platte
5a0a269cfe
Remove #![deny(warnings)]
2019-10-31 22:05:33 +01:00
Jonas Platte
ce6937c1a0
Update docs
2019-10-24 22:55:10 +02:00
Jonas Platte
1af436b775
Simplify InvalidEvent, update its documentation
2019-10-24 22:26:20 +02:00
Jonas Platte
2dd9ddd4e8
Allow clippy warning use_self
2019-10-23 02:53:00 +02:00
Jonas Platte
60c817e1b0
Restore Rust 1.34.2 compatibility
2019-10-23 02:09:34 +02:00
Jonas Platte
c925cd13f1
Update documentation
2019-10-23 01:42:06 +02:00
Jonas Platte
922a35eced
Refactor InvalidEvent
2019-10-23 01:41:09 +02:00
Jonas Platte
665fe4f4f4
Move (de)serialization helpers to util module
2019-10-22 23:56:03 +02:00
Florian Jacob
c21ecd9b6d
Add more documentation to vec_as_map_of_empty
2019-10-22 23:44:18 +02:00
Jonas Platte
7e210476fa
Re-enable #![deny(...)]
attributes
2019-10-19 02:31:54 +02:00
Jonas Platte
9536099f38
Replace custom Void type, change TryFromRaw::Err bound
2019-10-19 02:13:21 +02:00
Jonas Platte
7f771bc788
Fix failing tests
2019-10-18 00:46:35 +02:00
Jonas Platte
85990676cd
Remove impl Serialize for EventResult
2019-10-17 00:21:52 +02:00
Jonas Platte
982d978d94
Almost finish deserialize impl's
2019-10-16 21:40:30 +02:00
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
Jimmy Cuadra
91d564dcf8
WIP
2019-09-03 12:01:29 -07:00
Jimmy Cuadra
4984868e21
EventResult::into --> EventResult::into_result
2019-08-05 16:32:14 -07:00
Jimmy Cuadra
04cc113473
Add EventResult type for fallible deserialization.
2019-08-05 15:54:59 -07:00
Jimmy Cuadra
9bc2de3200
Mention that supporting types for event impl Deserialize
.
2019-07-23 01:25:49 -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
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
7eadc017a5
Convert collections modules to the new API.
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
596fc3c3df
Convert m.push_rules to the new API.
2019-07-19 14:57:39 -07:00
Jimmy Cuadra
8c8f1790f1
Clarify how InvalidInput differs from InvalidEvent.
2019-07-19 14:55:42 -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