143 Commits

Author SHA1 Message Date
Jonas Platte
9f56e6e497
events: Rename HierarchySpaceChildStateEvent => HierarchySpaceChildEvent 2022-03-31 18:42:27 +02:00
Jonas Platte
05ad164d21
macros: Fix errors from unused serde attributes with only server feature active 2022-03-25 12:26:52 +01:00
Jonas Platte
7a5be040fd
macros: Reduce codegen by feature-gating Serialize and Deserialize derives
… this makes it faster to compiler ruma-*-api with either the client or
server feature inactive.
2022-03-24 18:08:21 +01: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
54f9db8ccc macros: Consistently create Incoming* types from Incoming derive
… as a type alias if there are no lifetime generics on the input type.
2022-03-22 13:19:03 +01:00
Jonas Platte
5a791b3c6e macros: Simplify Incoming derive implementation 2022-03-22 13:19:03 +01:00
Jonas Platte
a6a530dcc8 serde: Rename derive macro Outgoing to Incoming
All it does now is generate `Incoming{Self}` types.
2022-03-22 13:19:03 +01:00
Jonas Platte
5cf42f3a86 serde: Remove the Outgoing trait 2022-03-22 13:19:03 +01:00
Jonas Platte
4e7eeb8aa4 macros: Slightly simplify generated API trait impls 2022-03-22 13:19:03 +01:00
Jonas Platte
e3a8b6b81f macros: Don't generate unused Outgoing structs
They are only needed when the server feature is active.
2022-03-22 13:19:03 +01:00
Kévin Commaille
af61a62202
macros: Add alias attribute to ruma_enum 2022-03-18 12:38:47 +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
e86ee7dd31
macros: Silence deprecation warnings in generated code 2022-03-16 12:20:18 +01:00
Jonas Platte
cdc6b9a2aa
macros: Add missing automatically_derived attributes 2022-03-16 12:20:17 +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
bdd54d1dd3
macros: Use import_ruma_common instead of import_ruma_api 2022-03-10 11:00:27 +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
Kévin Commaille
f32dcb9254
common: Merge ruma-api into ruma-common 2022-03-03 14:01:51 +01:00
Jonas Platte
c1e1665808
macros: Remove an unnecessary clone 2022-03-03 11:14:54 +01:00
Kévin Commaille
0d49715f29
macros: Merge ruma-api-macros into ruma-macros 2022-03-02 15:19:16 +01:00
Kévin Commaille
2a3c78de18
macros: Merge ruma-serde-macros into ruma-macros 2022-03-01 18:02:57 +01:00
Kévin Commaille
60eb51ee0e macros: Merge ruma-identifiers-macros into ruma-macros 2022-03-01 17:24:19 +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