40 Commits

Author SHA1 Message Date
Jonas Platte
d855ec33d6 identifiers: Update ToOwned implementations to use new types
… and a lot of changes that cascaded from that.
2022-04-20 10:39:36 +02:00
Jonas Platte
1db716f643
events: Add transaction_id accessor to applicable event enums 2022-04-13 16:47:42 +02:00
Kévin Commaille
688d5bf47a
docs: Improve string enums documentation
Mention the conversion from string.
2022-04-10 14:48:09 +02:00
Jonas Platte
7de3b4b649
events: Rework the event enum hierarchy 2022-04-05 14:29:17 +02:00
Jonas Platte
f540bbbc99
events: Remove some accessor functions
They will no longer make sense with the new enum hierarchy.
2022-04-05 14:29:17 +02:00
Jonas Platte
51244d5ae7
events: Fix name of internal helper method 2022-04-05 14:29:17 +02:00
Jonas Platte
d87874314b
events: Add 'Original' prefix to unredacted types with a redacted form 2022-04-05 14:29:17 +02:00
Jonas Platte
d614ad1422
macros: Remove PossiblyRedacted event enums 2022-04-05 14:29:17 +02:00
Jonas Platte
1415e32a1d macros: Remove some unnecessary short-circuiting in event proc-macros 2022-04-02 20:31:37 +02:00
Jonas Platte
634f93c985 macros: Improve error handling 2022-04-02 20:31:37 +02:00
Jonas Platte
a50b2d313a events: Remove unnecessary IdentFragment::span implementations 2022-04-02 20:31:37 +02:00
Jonas Platte
c787c8351e macros: Move EVENT_FIELDS out of util.rs
It was only used by the event_enum! macro anyways.
2022-04-02 20:31:37 +02:00
Jonas Platte
a4aa7e0912
macros: Fix missing type qualification in Event derive macro 2022-03-31 18:42:27 +02:00
Jonas Platte
9f56e6e497
events: Rename HierarchySpaceChildStateEvent => HierarchySpaceChildEvent 2022-03-31 18:42:27 +02:00
Jonas Platte
7fbb28f223
macros: Finish support for variable event types 2022-03-23 21:17:18 +01:00
Jonas Platte
a860fdaa86
macros: Allow variable event types in event_enum!
… the generated `*EventType`s aren't correct yet though.
2022-03-23 21:17:18 +01:00
Jonas Platte
ef9c84716c
common: Allow variable event types in EventContent derive 2022-03-23 21:17:18 +01:00
Jonas Platte
ada3108a96
common: Move prev_content into unsigned 2022-03-16 16:30:29 +01:00
Jonas Platte
e9c60cf36c
Deprecate the EventType enum 2022-03-16 12:20:18 +01:00
Jonas Platte
6f6e7ca68e
macros: Simplify *EventType generation 2022-03-16 12:20:17 +01:00
Jonas Platte
1b24a76967
macros: Refactor event type to type name conversion 2022-03-16 12:20:17 +01:00
Jonas Platte
862ee426ab
macros: Fix docs 2022-03-16 12:20:17 +01:00
Jonas Platte
6dc0bf248b
Use *EventType enums in more places 2022-03-16 12:20:17 +01:00
Jonas Platte
0f18deae1d
macros: Consistently use syn::Result type alias 2022-03-16 12:20:17 +01:00
Jonas Platte
c16ba45c9e
common: Replace event content marker traits with an associated type 2022-03-16 12:20:16 +01:00
Jonas Platte
8805b8f2e3
macros: Consistently put ruma_common import path last 2022-03-16 12:20:16 +01:00
Jonas Platte
0faa00ca95
macros: Move additional utility function into util module 2022-03-16 12:20:16 +01:00
Jonas Platte
d78fb70953
macros: Ensure event content types are structs 2022-03-14 16:32:17 +01:00
Jonas Platte
0b10151bcb
macros: Only iterate fields once in EventContent derive 2022-03-14 16:32:17 +01:00
Jonas Platte
46bab5cca6
macros: Fix unnecessary named fields requirement in EventContent derive 2022-03-14 16:32:17 +01:00
Jonas Platte
44ed91a5af
macros: Fix inconsistent naming 2022-03-14 16:32:17 +01:00
Kévin Commaille
bdcf07be87
common: Merge ruma-serde into ruma-common 2022-03-10 12:11:00 +01:00
Kévin Commaille
088d1872b7
common: Merge ruma-identifiers into ruma-common 2022-03-09 17:46:51 +00:00
Jonas Platte
493b9a08c7
macros: Move utility things into util module 2022-03-04 17:43:39 +01:00
Jonas Platte
1192bd1099
common: Create crate-level macro re-exports module 2022-03-04 17:00:01 +01:00
Jonas Platte
f4b539bec5
macros: Fix a confusing variable name 2022-03-04 15:08:16 +01:00
Kévin Commaille
c3f9a3cb70
common: Merge ruma-events into ruma-common 2022-03-04 11:45:07 +00:00
Jonas Platte
c1e1665808
macros: Remove an unnecessary clone 2022-03-03 11:14:54 +01:00
Kévin Commaille
84e1c919c9
client-api: Implement space summary API
According to MSC2946
2022-03-01 15:57:43 +01:00
Kévin Commaille
f2dca60fc7
macros: Rename ruma-events-macros to ruma-macros 2022-02-27 13:54:17 +01:00