Jonas Platte
dd89b24aa4
Update custom module
2020-06-07 17:50:47 +02:00
Jonas Platte
9e51208c19
Rerun cargo fmt for ruma-federation-api
2020-06-07 17:35:41 +02:00
Jonas Platte
7a6264e0ff
Integrate ruma-identifiers
2020-06-07 17:26:33 +02:00
Jonas Platte
b1193a2883
identifiers: Add DeviceId, DeviceIdRef to the crate root
2020-06-07 17:22:44 +02:00
Jonas Platte
abf8eafe0e
Rerun cargo fmt
2020-06-07 17:22:20 +02:00
Jonas Platte
83de77f002
Add 'ruma-identifiers/' from commit 'c0a1d8bd440c7cde0fa4ab5e22898ddb26bb706d'
...
git-subtree-dir: ruma-identifiers
git-subtree-mainline: 19ce9645b6651e4de42ddf9e81ee50e19c8c0f26
git-subtree-split: c0a1d8bd440c7cde0fa4ab5e22898ddb26bb706d
2020-06-07 17:06:45 +02:00
iinuwa
c0a1d8bd44
Add key identifiers
2020-06-07 17:03:49 +02:00
Jonas Platte
19ce9645b6
Integrate ruma-federation-api
2020-06-07 16:26:11 +02:00
Jonas Platte
10bd7d5f95
Add 'ruma-federation-api/' from commit '44a0f493d0ae119fb1175a5f61c2db52ef001fb7'
...
git-subtree-dir: ruma-federation-api
git-subtree-mainline: acff664671e3f53bd012d33228363780eb20cf35
git-subtree-split: 44a0f493d0ae119fb1175a5f61c2db52ef001fb7
2020-06-07 16:21:23 +02:00
Jonas Platte
283370ff2f
Add more event kinds
2020-06-07 16:15:24 +02:00
Jonas Platte
315ac55d46
Replace state.rs, messages.rs by event_kinds.rs, content_enums.rs
2020-06-07 16:01:35 +02:00
Jonas Platte
aa7a54015c
Rename ruma_content_collection to ruma_content_enum
2020-06-07 15:54:23 +02:00
Jonas Platte
f531dce754
Externalize generic event struct tests
2020-06-07 15:48:44 +02:00
Timo Kösters
acff664671
Optimize /sync response
2020-06-07 12:08:25 +02:00
Jonas Platte
b3f024bf13
Update list of events in AnyStateEventContent
2020-06-07 01:18:42 +02:00
Ragotzy.devin
0a91ac5126
Remove raw mod and TryFromRaw/FromRaw, derive Deserialize for event content types
2020-06-07 01:18:42 +02:00
Ragotzy.devin
2c8d609095
Add Event derive macro
2020-06-07 01:18:42 +02:00
Jonas Platte
6a844625fc
Clean up macro crate attributes
2020-06-07 01:18:42 +02:00
Jonas Platte
76cd387506
Remove support for state events in ruma_event!
2020-06-07 01:18:42 +02:00
Jonas Platte
b95b7db0d4
Convert remaining state structs from ruma_event! to derive(StateEventContent)
2020-06-07 01:18:42 +02:00
Jonas Platte
74f680f8ed
Add back all commented-out room events
2020-06-07 01:18:42 +02:00
Jonas Platte
7d303fff7e
Fix unsigned field not being serialized for MessageEvent, StateEvent
2020-06-07 01:18:41 +02:00
Jonas Platte
158287204b
Fix a typo
2020-06-07 01:18:41 +02:00
Jonas Platte
35eb0bcfbf
Re-export MessageEvent from the crate root
2020-06-07 01:18:41 +02:00
Ragotzy.devin
33ac5267a9
Implement MessageEvent and AnyMessageEventContent
2020-06-07 01:18:34 +02:00
Jonas Platte
24f720d1f1
Convert most message events from ruma_event! to derive(MessageEventContent)
...
* m.sticker
* m.call.answer
* m.call.candidates
* m.call.hangup
* m.call.invite
2020-06-07 01:11:15 +02:00
Ragotzy.devin
80ff10ae6a
Move event content collection trait impl's into macro code
...
* Move the EventContent and content marker traits into macro.
* Move the raw AnyStateEventContent enum and RawEventContent trait into macro, generate all of the AnyStateEventContent type and impls needed for raw.
* Factor out raw mod codegen to seperate fn, add docs to codegen enum + variants, remove unused imports
2020-06-07 01:11:15 +02:00
Jonas Platte
5091b9a9a8
Integrate generic event types and EventContent trait with TryFromRaw
2020-06-07 01:11:15 +02:00
Ragotzy.devin
3814690b29
event_content_collection!: implement parsing input and generating an enum
2020-06-07 01:11:15 +02:00
Ragotzy.devin
7ec162678e
Implement first trybuild tests
...
and use a dedicated InvalidEvent constructor fn in EventContent derives
2020-06-07 01:11:13 +02:00
Ragotzy.devin
0c0dafa2c5
Move event content derives into one place and share code
2020-06-07 01:10:55 +02:00
Jonas Platte
cc3d0af40c
Make state a private module
2020-06-07 01:10:55 +02:00
Jonas Platte
945b8c535d
Add unsigned field to StateEvent
2020-06-07 01:10:55 +02:00
Jonas Platte
1377487b6c
Declare more state event content structs without ruma_event!
2020-06-07 01:10:54 +02:00
Jonas Platte
eceef3b96d
Declare a few state event content structs without the ruma_event! macro
2020-06-07 01:09:12 +02:00
Ragotzy.devin
ef6e2e7023
Add derive macro for StateEventContent
2020-06-07 01:02:49 +02:00
Jonas Platte
27a9b36499
Delete collections module
2020-06-07 01:02:49 +02:00
Jonas Platte
5dc1405d9d
Add MessageEventContent trait, update docs
2020-06-07 01:02:49 +02:00
Ragotzy.devin
f0c94958fa
Move raw
mod into FromRaw derive
2020-06-07 01:02:49 +02:00
Ragotzy.devin
1a9b0f3e8b
Add StateEvent<C> and AnyStateEvent
2020-06-07 01:02:49 +02:00
Ragotzy.devin
3d01bfa96d
Remove Event, RoomEvent and StateEvent traits
2020-06-07 01:02:49 +02:00
Jonas Platte
db4c0b2134
Add a test for ruma_signatures::canonical_json
2020-06-06 20:36:01 +02:00
Jonas Platte
f6fb971329
Really stop depending on multiple versions of ruma-events (directly)
...
and also bump some other deps
2020-06-05 18:35:46 +02:00
Jonas Platte
eefaa01403
Expose ruma-identifiers features
2020-06-05 18:12:40 +02:00
Jonas Platte
afa7392b58
Use the same version of ruma-events everywhere
2020-06-05 18:04:08 +02:00
Jonas Platte
d5bd6bd61d
Rerun cargo fmt
2020-06-05 17:46:29 +02:00
Jonas Platte
edda62f52d
Add path for ruma-api in ruma/Cargo.toml
2020-06-05 17:37:15 +02:00
Jonas Platte
f66ebbd3e0
Fix version of ruma-signatures in ruma/Cargo.toml
2020-06-05 17:34:36 +02:00
Jonas Platte
5865d24bb1
Remove ruma-common/.builds
2020-06-05 17:23:07 +02:00
Jonas Platte
e9e641a85e
Integrate ruma-signatures
2020-06-05 17:22:48 +02:00