21 Commits

Author SHA1 Message Date
Jonas Platte
fd15dcda9f
events-macros: Get rid of lots of unwrapping 2021-10-07 00:13:57 +02:00
Jonas Platte
9103ad74bb
events-macros: Reorganize event impl generation 2021-10-07 00:07:15 +02:00
Jonas Platte
0a679816a9
events-macros: Pass EventKind and EventKindVariation by value 2021-10-06 22:08:11 +02:00
Jonas Platte
a3ef0ad2a4
events-macros: Use nested or-patterns in EventKind::to_event_ident
… for better readability.
2021-10-06 22:03:27 +02:00
Jonas Platte
be549e4000
events-macros: Rename name => kind for clarity 2021-10-06 21:11:17 +02:00
Jonas Platte
4e2fdcb990
events: Remove redacted event content enums
They weren't being used anywhere.
2021-10-06 20:33:40 +02:00
Jonas Platte
04080085f9
events: Include all event type segments in Rust type names 2021-10-02 21:25:21 +02:00
Jonas Platte
c807f9f43d
events: Add redacted redaction event types 2021-10-02 13:48:22 +02:00
Jonas Platte
3b786d8f78
events-macros: Simplify redaction-related code 2021-10-02 00:47:19 +02:00
Jonas Platte
2536fdbe54
events-macros: Get rid of duplicate helper functions 2021-10-01 20:16:23 +02:00
Jonas Platte
8df746d442
events-macros: Simplify conversion code generation 2021-10-01 20:05:32 +02:00
Jonas Platte
ab6a364e42
events: Use type aliases inside enums 2021-10-01 19:49:25 +02:00
Jonas Platte
bb9f95224c
events: Remove RedactedStrippedStateEvent
Stripped state events are never redacted.
2021-09-15 20:36:20 +02:00
Jonas Platte
11fea54173
events: Disallow more than one event kind attribute
… and also raise an error if there's multiple type attributes (extra
ones used to be ignored).
2021-08-11 19:19:16 +02:00
Jonas Platte
05e28f7422
events: Add types for decrypted event payloads 2021-06-20 09:39:48 +02:00
Devin Ragotzy
34134267c6
events: Generate redact method for content enums
… and remove redacted content structs non-room events
2021-05-15 12:51:20 +00:00
Devin Ragotzy
d1f5fb1d87
events: Declare all event enums inside one macro invocation 2021-05-14 23:52:34 +00:00
Kévin Commaille
7faa59be6b events: Remove BasicToDevice enum 2021-05-12 16:02:44 +02:00
Kévin Commaille
8d8ca81e04 events: Split Basic enum into GlobalAccountData, RoomAccountData and BasicToDevice enums
Closes #563
2021-05-12 16:02:44 +02:00
Devin Ragotzy
c6aa2e0428 Fix clippy warnings across workspace 2021-05-06 06:16:28 -04:00
Jonas Platte
3db0ea7026
Move all crates into a new crates directory 2021-05-03 15:50:27 +02:00