Jonas Platte
1878e8aae0
Replace some turbofishes with type annotations
2021-04-05 13:13:28 +02:00
Akshay
8fadffa31d
events-macros: Use lookahead1 instead of parse().is_ok()
2021-02-06 18:23:40 +01:00
Jonas Platte
f2d9e5b019
events-macros: Reduce turbofish usage
2021-02-06 14:55:32 +01:00
Jonas Platte
8de0776796
Stop relying on features activated through dev-dependencies
2021-01-04 01:51:36 +01:00
Jonas Platte
212153ea5f
Mark macro-generated trait implementations as #[automatically_derived]
2020-12-13 13:29:03 +01:00
Jonas Platte
8ccf0f128b
Normalize formatting of empty curly braces
2020-11-27 23:07:32 +01:00
Jonas Platte
675efbc5f1
events-macros: Improve readability, fix lines >100 chars
2020-11-27 23:07:09 +01:00
Devin Ragotzy
e2f84679b3
Use proc_macro_crate name in the event content derives
2020-08-11 23:47:34 +02:00
Devin Ragotzy
cfe62f27d0
Re-export ruma-events-macros and deps in ruma-events
...
This also adds the dependency and function to find crate name at macro
expansion time.
2020-08-11 23:47:34 +02:00
Devin Ragotzy
4a34375449
Support multiple attribute arguments in ruma_event attribute ( #161 )
...
* Add parsing to allow ruma_event attribute to accept mutli args
* fixup! Add parsing to allow ruma_event attribute to accept mutli args
* Refactor MetaAttrs::parse and resolve review issues
2020-07-26 19:18:28 -04:00
Ragotzy.devin
1db0082281
Add redact method to all event_enum! generated enums
...
… and to AliasesEventContent
2020-07-17 01:07:07 +02:00
Devin R
6f69a6fe76
Fix redacted aliases event deserialization
2020-07-15 17:10:47 +02:00
Ragotzy.devin
1db4898cde
Refactor the input parsing of event_enums!
2020-07-13 15:31:15 +02:00
Ragotzy.devin
5e428ac95a
Add support for redacted events
...
* Generate redacted event enums and implement corresponding event structs
* Enable the *EventContent derives to generate redacted events
Most redacted event code is now generated by the *EventContent derive
macro. The exception are any content structs with the custom_redaction
attribute. This leaves implementing up to the user.
* Add redact method to Redaction/CustomEventContent
* Add accessor methods for redacted event enums
* Add RedactedEventContent trait and super traits to match EventContent
2020-07-11 14:59:36 +02:00
Jonas Platte
c40e3974e7
Remove ruma_events::InvalidEvent
2020-06-15 22:59:49 +02:00
Jonas Platte
0a788c1273
Integrate ruma-events
2020-06-10 22:20:41 +02:00