67 Commits

Author SHA1 Message Date
Jonas Platte
f130d09daa
events: Remove Serialize implementations for event enums 2022-02-12 01:52:53 +01:00
Kévin Commaille
cdf383cc45 events: Move MSCs to per-msc features 2022-02-11 10:18:07 +01:00
Jonas Platte
b08e8cff9d
events: Remove custom module
… and shuffle things around so there's still a content type that can be
used for _Custom event enum variants.
2022-02-08 19:12:19 +01:00
Jonas Platte
89ae41166d
events: Move new verification events out of unstable-pre-spec
… since they were stabilized with v1.1.
2022-01-31 20:43:38 +01:00
Jonas Platte
ee977b48f0
Make the inner type of _Custom enum variants unusable
The variant itself would be private if possible, this is the solution
closest to that.
2022-01-13 11:38:48 +01:00
Jonas Platte
3cb728e61a
Enforce most serde_json import renames through clippy 2022-01-03 12:28:15 +01:00
Jonas Platte
6b76d7813e
identifiers: Shorten RoomVersionId variant names 2021-11-26 01:07:26 +01:00
Jonas Platte
87051c3cb6
identifiers: Make server_name! macro return a reference instead of an owned value
It is easy to turn it into an owned value through `.to_owned()`.
The reverse was not possible without tying the reference to the lifetime
of a temporary variable.
2021-11-26 00:53:07 +01:00
Jonas Platte
5852658da5
identifiers: Make KeyId a DST 2021-11-26 00:40:44 +01:00
Jonas Platte
3ce578f384
identifiers: Make UserId a DST 2021-11-26 00:40:40 +01:00
Jonas Platte
2d4dbfe42f
identifiers: Make RoomId a DST 2021-11-26 00:04:28 +01:00
Jonas Platte
b0db5e94e1
identifiers: Make RoomAliasId a DST 2021-11-26 00:04:28 +01:00
Jonas Platte
ec605a0959
identifiers: Make MxcUri a DST 2021-11-26 00:04:28 +01:00
Jonas Platte
52608cc72c
identifiers: Make EventId a DST 2021-11-25 22:34:40 +01:00
Jonas Platte
438efee143
identifiers: Remove Box<$id> aliases 2021-11-25 21:07:14 +01:00
Jonas Platte
3ea16b6d09
events: Update comment, silence lint 2021-10-29 22:13:26 +02:00
Jonas Platte
401c0b07b3
Fix clippy warnings 2021-10-19 22:15:59 +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
3550ed9b1e
events: Add more trailing commas 2021-10-06 20:29:55 +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
330754e6f8
events: Get rid of unnecessary Raw usage in a test 2021-10-02 21:16:08 +02:00
Jonas Platte
3ee4ac08fb
events: Fix a test case 2021-10-02 13:08:19 +02:00
Jonas Platte
0101e110f8
Rename *ToDeviceEventContent structs to ToDevice*Content 2021-10-01 16:48:45 +02:00
Jonas Platte
120f1f3b2a
events: Generate event type aliases 2021-09-30 00:47:13 +02:00
Jonas Platte
2bf17fd727
events: Further clean up tests 2021-09-19 19:10:52 +02:00
Jonas Platte
9929a3f8d5
events: Clean up some tests 2021-09-19 18:56:12 +02:00
Jonas Platte
4ec9f1aa03
events: Require MessageType to always contain a body 2021-09-17 19:09:17 +02:00
Jonas Platte
a9985d7763
events / state-res: Use RawJsonValue over JsonValue for event content 2021-09-15 20:58:42 +02:00
Jonas Platte
1df1256a86
events: Put pdu module behind an unstable feature flag 2021-09-15 20:58:37 +02:00
Jonas Platte
b0e6b22ffe
events: Fix a test 2021-09-15 20:36:15 +02:00
Jonas Platte
72538d1de5
events: Update expected output for trybuild test 2021-08-17 13:01:09 +02:00
Jonas Platte
b9486b91fa
events: Truly appease clippy 2021-08-16 23:48:17 +02:00
Jonas Platte
1077889e4e
events: Appease clippy 2021-08-16 23:26:50 +02:00
Jonas Platte
f859d543e1
events: Test new prev_content compat code 2021-08-16 23:10:58 +02:00
Jonas Platte
367f4ac0e6
events: Fix UI test failing with compat feature 2021-08-16 23:10:46 +02:00
Jonas Platte
fb0e3008bb
events: Fix test failing with compat feature 2021-08-16 23:10:28 +02:00
Adam
63411165da
Move RoomName to ruma-identifiers and use it more 2021-08-10 15:22:47 +02:00
Jonas Platte
6ee3955483
Remove most deprecated items 2021-08-10 15:22:46 +02:00
Adam
976f90a1a2
events: Add RoomName struct to room::name 2021-08-10 15:22:26 +02:00
Adam
e3427ba5d0
Update expected stderr on tests for Rust 1.54 2021-08-02 19:46:01 +00:00
Jonas Platte
84829e23dc
events: Remove shared Relation type in favor of more per-event-type ones 2021-06-20 19:27:12 +02:00
Devin Ragotzy
e05aad184e events: Make all pub structs non_exhaustive 2021-06-18 20:53:06 +02:00
Jonas Platte
349a57ffc7
events: Rename & hide event enum Custom variant 2021-06-17 19:43:23 +02:00
Jonas Platte
ec4b719546
events: Refactor message relations
* Discard unknown relations
* Move new_content into Relation::Replacement
2021-06-17 19:43:23 +02:00
Jonas Platte
f179a5c771
events: Drop M prefix from enum variants 2021-06-17 19:43:23 +02:00
Kévin Commaille
52d8ff1ffd
events: Improve room::message markdown constructors
Only return an html message if some markdown formatting was detected.
2021-05-18 21:28:15 +02:00
Jonas Platte
76c9c56471
events: Make more types non-exhaustive 2021-05-16 23:47:38 +02:00
Jonas Platte
ecf875358c
events: Fix issues from not testing previous commits 2021-05-16 22:53:00 +02:00
Jonas Platte
7626135faf
events: Make fields of doc(hidden) struct private 2021-05-16 22:34:24 +02:00
Jonas Platte
f77b49d4b8
events: Make more types non-exhaustive in room::message 2021-05-15 22:20:48 +02:00