1677 Commits

Author SHA1 Message Date
Jonas Platte
0a788c1273
Integrate ruma-events 2020-06-10 22:20:41 +02:00
Jonas Platte
fbf0deacfe
Re-rustfmt ruma-events 2020-06-10 22:17:59 +02:00
Jonas Platte
f304c04d1d Add 'ruma-events/' from commit '00692d532e26f58d48ead9589dc823403c6e59a5'
git-subtree-dir: ruma-events
git-subtree-mainline: d59a616e2c363507a89c92f34aa67e86ee2cfb49
git-subtree-split: 00692d532e26f58d48ead9589dc823403c6e59a5
2020-06-10 22:07:24 +02:00
Jonas Platte
00692d532e
Add a simple to-device test 2020-06-10 22:03:25 +02:00
Jonas Platte
900e9e324b
Add to-device event enum 2020-06-10 21:09:20 +02:00
Jonas Platte
bc5b7aa3e2
Add RedactionEventStub, event enums 2020-06-10 21:04:03 +02:00
Ragotzy.devin
2a91dc1eb7
Remove event_enum! and only use event_content_enum 2020-06-10 20:51:41 +02:00
Ragotzy.devin
92a2dfa2e8
Uncomment all event enum variants, convert remaining ruma_event! usages 2020-06-10 13:10:50 +02:00
Devin R
aea827a199 Make event_enum! error message more helpful 2020-06-10 12:35:40 +02:00
Devin R
86ca6bb39d Add trybuild tests for event_enum! macro 2020-06-10 12:35:40 +02:00
Jonas Platte
36d7ee2676
Add EphemeralRoomEventStub 2020-06-10 10:29:00 +02:00
Jonas Platte
10ad9760d6 Extend MembershipChange::ProfileChanged 2020-06-10 09:43:14 +02:00
Jonas Platte
b33e57c589
Remove support for room events from ruma_event! 2020-06-10 00:24:17 +02:00
Jonas Platte
a7a16ccfcc
Delete old tests 2020-06-10 00:20:01 +02:00
Jonas Platte
47a4dc51c6
Add TagEvent type alias 2020-06-10 00:19:33 +02:00
Jonas Platte
7491b33e81
Add MemberEvent type alias 2020-06-09 23:38:14 +02:00
Ragotzy.devin
c2b1c9897b
Any event enum macro implementation (also generates event content enums) 2020-06-09 23:31:31 +02:00
Jonas Platte
b0d775a535
Restore unsigned.redacted_because 2020-06-09 17:02:08 +02:00
Jonas Platte
9478050792
Remove stripped module 2020-06-09 17:01:08 +02:00
Jonas Platte
a317ae6340
Add and re-export remaining event kinds 2020-06-09 16:58:58 +02:00
Jonas Platte
49e4d35db7
Adopt matrix-doc iv description clarification
See https://github.com/matrix-org/matrix-doc/pull/2492
2020-06-09 14:08:49 +02:00
Ragotzy.devin
1fdf986bae
Add RedactionEvent and convert RedactionEventContent to struct def
PresenceEventContent and RedactionEventContent now also derive *EventContent
2020-06-09 12:43:21 +02:00
Jonas Platte
647130c0fb
Clean up lib.rs 2020-06-09 02:24:06 +02:00
Jonas Platte
d377df88b8
Add content_enums::AnyToDeviceEventContent
… and remove the now outdated to_device module
2020-06-09 02:22:21 +02:00
Jonas Platte
abdc7ff2f7
Convert m.key.verification.start ot the new API 2020-06-09 02:13:07 +02:00
Jonas Platte
beabaec03e
Update AnyMessageEventContent 2020-06-09 02:05:36 +02:00
Jonas Platte
886320cbf4
Remove event_enums.rs, event enums will be generated 2020-06-09 02:03:00 +02:00
Jonas Platte
1373d4daaf
Rename ephemeral_event to ephemeral_room_event 2020-06-09 01:56:20 +02:00
Jonas Platte
924ff5096b
Bring back direct, dummy, push_rules 2020-06-09 01:54:58 +02:00
Jonas Platte
63a2e5e4eb
Fix tests 2020-06-09 01:53:24 +02:00
Jonas Platte
1e365c6a2d
Re-introduce dedicated event types as type alises 2020-06-09 01:40:52 +02:00
Jonas Platte
d4a196f682
Update ReceiptEventContent representation
… and implement Deref, DerefMut for it
2020-06-09 01:33:40 +02:00
Jonas Platte
1f2c186ce1
Remove ToDeviceEventContent
… since any event can be sent using to-device messaging
2020-06-09 01:22:50 +02:00
Ragotzy.devin
6a0a10fcff
Add BasicEventContent derive and create AnyBasicEventContent enum
Also remove PresenceEventContent derive and expand code gen
2020-06-08 23:51:22 +02:00
stoically
d59a616e2c
federation-api: Add query server key discovery endpoints 2020-06-08 21:18:58 +02:00
Ragotzy.devin
d38e385aab
Remove unused imports and fix serde::ser::Error trait not being in scope 2020-06-08 14:40:59 +02:00
Ragotzy.devin
800fba7c32
Implement PresenceEvent and EphemeralEvent
* Add derive for PresenceEventContent and create struct AnyPresenceEventContent
since there is only one content type
* Add derive for Ephemeral event and create enum AnyEphemeralEventContent, convert
receipt and typing to use derive(EphemeralEventContent) over ruma_api!
2020-06-07 22:56:43 +02:00
Ragotzy.devin
ef3a6787a0
Remove src/from_raw.rs and ruma-events-macro/src/from_raw.rs 2020-06-07 22:21:04 +02:00
Isaiah Inuwa
baa8710456 Re-export key identifiers at crate root 2020-06-07 13:52:27 -05:00
Jonas Platte
8c271fb835
Add event_enums.rs
only contains AnyStateEvent for now, more will be added
2020-06-07 20:18:07 +02:00
Jonas Platte
d3b17e2b5b
Fix a typo 2020-06-07 20:08:50 +02:00
Jonas Platte
29a6c94a4f
Remove all but the toplevel .gitignore 2020-06-07 18:53:53 +02:00
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