19 Commits

Author SHA1 Message Date
iinuwa
bfad8cf1f1
Add send transaction endpoint
Also refactor PDU types and move them to ruma-events
2020-06-17 11:02:19 +02:00
Devin R
7c934e1b8f Implement EventContent for CustomEventConent and include in Any*EventContent enums 2020-06-17 00:44:27 +02:00
Jonas Platte
8195496cfd
events: Remove unused util module 2020-06-16 02:15:54 +02:00
Jonas Platte
d78cd2ed15
Fix deserializing event enums from serde_json::Value
(or anything else that's not a JSON string)
2020-06-16 02:12:13 +02:00
Ragotzy.devin
f4665761be
Fix failing deserialization when encountering an unknown field 2020-06-16 00:34:58 +02:00
Jonas Platte
f2f283c965
Optimize event enum deserialization
Criterion reports ~25% improved performance
2020-06-16 00:29:05 +02:00
Ragotzy.devin
0381190bdb
Add is_compatible method to event content enums to fix Any*Event deserialization
… and add some benchmarks for it
2020-06-15 23:59:31 +02:00
Jonas Platte
c40e3974e7
Remove ruma_events::InvalidEvent 2020-06-15 22:59:49 +02:00
Jonas Platte
1d954f3089
Deprecate / remove re-exports from ruma_common 2020-06-15 19:20:34 +02:00
Jonas Platte
83d8f8c43e
Move some types from ruma_events::push_rules to ruma_common::push 2020-06-15 19:05:17 +02:00
Ragotzy.devin
3ec0936a28
Add back ruma-events/tests/stripped.rs 2020-06-15 11:37:26 +02:00
Ragotzy.devin
9dab2f5b1f
Fix clippy warning in nightly CI 2020-06-13 14:02:53 +02:00
Jonas Platte
9e04d648ca
events: Make almost all enums non_exhaustive 2020-06-13 00:32:44 +02:00
Jonas Platte
40d3c8ae66
events: Remove stripped.rs (whose mod declaration was already removed previously) 2020-06-13 00:28:29 +02:00
Jonas Platte
a9189d7db3
events: Remove EventJson from presence tests 2020-06-13 00:26:57 +02:00
Ragotzy.devin
be0838e7d3
Change EncryptedEventContent from StateEventContent to MessageEventContent
… and add it to AnyMessageEventContent
2020-06-11 23:48:57 +02:00
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