Jonas Platte
|
a3ef0ad2a4
|
events-macros: Use nested or-patterns in EventKind::to_event_ident
… for better readability.
|
2021-10-06 22:03:27 +02:00 |
|
Jonas Platte
|
47d1f30be8
|
events-macros: Simplify expand_redacted_event_enum
|
2021-10-06 21:30:26 +02:00 |
|
Jonas Platte
|
be549e4000
|
events-macros: Rename name => kind for clarity
|
2021-10-06 21:11:17 +02:00 |
|
Jonas Platte
|
653f03325b
|
events-macros: Shorten expand_event_enums through import-rename
|
2021-10-06 20:52:56 +02:00 |
|
Jonas Platte
|
ce8cbff3fd
|
events-macros: Improve function / variable names
|
2021-10-06 20:51:19 +02:00 |
|
Jonas Platte
|
4e2fdcb990
|
events: Remove redacted event content enums
They weren't being used anywhere.
|
2021-10-06 20:33:40 +02:00 |
|
Jonas Platte
|
04080085f9
|
events: Include all event type segments in Rust type names
|
2021-10-02 21:25:21 +02:00 |
|
Jonas Platte
|
0890c3c37c
|
events: Skip serialization of all None event fields
… not just prev_content.
|
2021-10-02 14:17:36 +02:00 |
|
Jonas Platte
|
4e2b93617a
|
events-macros: Fix confusing variable name
|
2021-10-02 13:48:23 +02:00 |
|
Jonas Platte
|
c7284d972b
|
events-macros: Explain redaction special case
|
2021-10-02 13:48:23 +02:00 |
|
Jonas Platte
|
c807f9f43d
|
events: Add redacted redaction event types
|
2021-10-02 13:48:22 +02:00 |
|
Jonas Platte
|
e41abbb56b
|
events: Implement Redact for event structs
… it was only implemented for the enums before.
|
2021-10-02 01:19:36 +02:00 |
|
Jonas Platte
|
3b786d8f78
|
events-macros: Simplify redaction-related code
|
2021-10-02 00:47:19 +02:00 |
|
Jonas Platte
|
ec92349496
|
events-macros: Add missing automatically_derived attribute
|
2021-10-01 20:17:47 +02:00 |
|
Jonas Platte
|
2536fdbe54
|
events-macros: Get rid of duplicate helper functions
|
2021-10-01 20:16:23 +02:00 |
|
Jonas Platte
|
d77f58dc46
|
events-macros: Fix proc-macro entrypoint name
|
2021-10-01 20:14:02 +02:00 |
|
Jonas Platte
|
651741f482
|
events-macros: Fix unqualified usage of From
|
2021-10-01 20:12:49 +02:00 |
|
Jonas Platte
|
8df746d442
|
events-macros: Simplify conversion code generation
|
2021-10-01 20:05:32 +02:00 |
|
Jonas Platte
|
ab6a364e42
|
events: Use type aliases inside enums
|
2021-10-01 19:49:25 +02:00 |
|
Jonas Platte
|
eff770d1d6
|
events: Generate initial event type aliases
|
2021-10-01 19:37:52 +02:00 |
|
Jonas Platte
|
802c83f38b
|
events: Fix redacted event type aliases
|
2021-10-01 18:41:11 +02:00 |
|
Jonas Platte
|
0101e110f8
|
Rename *ToDeviceEventContent structs to ToDevice*Content
|
2021-10-01 16:48:45 +02:00 |
|
Jonas Platte
|
6b575ca0a2
|
events: Fix missing space in docs
|
2021-10-01 14:26:17 +02:00 |
|
Jonas Platte
|
bb581e9252
|
events: Generate more event type aliases
|
2021-09-30 20:11:32 +02:00 |
|
Jonas Platte
|
120f1f3b2a
|
events: Generate event type aliases
|
2021-09-30 00:47:13 +02:00 |
|
Jonas Platte
|
f0dff1c29a
|
events: Link to main content struct from redacted content struct docs
|
2021-09-29 00:30:39 +02:00 |
|
Jonas Platte
|
e2d9bf5eba
|
ruma-events 0.24.6
Improvements:
* Add (unstable) support for [MSC3083](https://github.com/matrix-org/matrix-doc/blob/main/proposals/3083-restricted-rooms.md)
-----BEGIN PGP SIGNATURE-----
iIwEABYIADQWIQSYRl0lv78dXawPPq7MFU3g4wt8ZwUCYUjgYBYcanBsYXR0ZStn
aXRAcG9zdGVvLmRlAAoJEMwVTeDjC3xnvF8A/0s7gcm4pijTII7wrIOxB0eWSUgc
TSxXIOYpsiDcswnUAP9+PLx+ziy0oxtbPcWK5bil7JBcYwM1tlqIM+d9qlgiCQ==
=W1O9
-----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
iIwEABYIADQWIQSYRl0lv78dXawPPq7MFU3g4wt8ZwUCYUjgkBYcanBsYXR0ZStn
aXRAcG9zdGVvLmRlAAoJEMwVTeDjC3xnrOkBALaAq5RRXvD2xdBD2Q6H9xEPsd/x
KSknkjMjqgCJq2g8AQCql0S5QpH8PsmOKDmMO9X6lIHnnaqUxpSOOHIm83VKAA==
=9Aii
-----END PGP SIGNATURE-----
Merge tag 'ruma-events-0.24.6'
ruma-events 0.24.6
Improvements:
* Add (unstable) support for [MSC3083](https://github.com/matrix-org/matrix-doc/blob/main/proposals/3083-restricted-rooms.md)
|
2021-09-20 21:27:12 +02:00 |
|
Jonas Platte
|
d07cacb61d
|
Release ruma-events 0.24.6
|
2021-09-20 21:25:27 +02:00 |
|
Jonas Platte
|
bb9f95224c
|
events: Remove RedactedStrippedStateEvent
Stripped state events are never redacted.
|
2021-09-15 20:36:20 +02:00 |
|
Jonas Platte
|
46c7e3f811
|
Clean up and rewrap documentation comments
|
2021-08-27 21:32:02 +02:00 |
|
Jonas Platte
|
f3e52e4bc3
|
events: Don't serialize event_type inside content for unsupported events
|
2021-08-22 14:12:36 +02:00 |
|
Jonas Platte
|
18127be03c
|
events-macros: Revert recent addition of unneeded allow(clippy::lints)
|
2021-08-22 14:10:15 +02:00 |
|
Jonas Platte
|
77cf085ab9
|
events: Don't store extra fields for unknown events in content enums
|
2021-08-22 13:54:20 +02:00 |
|
Jonas Platte
|
1c361c2895
|
events-macros: Reduce amount of newlines
|
2021-08-22 13:29:03 +02:00 |
|
Jonas Platte
|
b85e452aec
|
Release ruma-events 0.24.5
|
2021-08-21 15:58:54 +02:00 |
|
Adam
|
d746244241
|
events: Generate From impls for event (content) enums
|
2021-08-17 15:44:33 +00:00 |
|
Jonas Platte
|
b84cc8d905
|
events-macros: Refactor expand_event
|
2021-08-17 12:39:16 +02:00 |
|
Jonas Platte
|
90683f0faa
|
Release ruma-events 0.24.4
|
2021-08-16 23:12:35 +02:00 |
|
Jonas Platte
|
098339056b
|
events: Add a compat workaround for prev_content in unsigned
|
2021-08-16 22:55:27 +02:00 |
|
Jonas Platte
|
7e6fcab676
|
Release ruma-events 0.24.3
|
2021-08-13 17:16:08 +02:00 |
|
Jonas Platte
|
c24890f82b
|
events: Refactor Event derive
|
2021-08-13 00:16:31 +02:00 |
|
Jonas Platte
|
3b0afb520a
|
events: Optimize deserialization helpers
|
2021-08-12 20:46:15 +02:00 |
|
Jonas Platte
|
e396092ac0
|
Release ruma-events 0.24.2
|
2021-08-11 21:08:46 +02:00 |
|
Jonas Platte
|
f4d60f1ecb
|
Release ruma-events 0.24.1
|
2021-08-11 20:31:23 +02:00 |
|
Jonas Platte
|
9445e8756a
|
events: Derive / implement StaticEventContent for all relevant types
|
2021-08-11 20:31:03 +02:00 |
|
Jonas Platte
|
a30279b83f
|
events: Refactor EventContent derive code
|
2021-08-11 19:26:54 +02:00 |
|
Jonas Platte
|
11fea54173
|
events: Disallow more than one event kind attribute
… and also raise an error if there's multiple type attributes (extra
ones used to be ignored).
|
2021-08-11 19:19:16 +02:00 |
|
Jonas Platte
|
1c5067a916
|
Release ruma-events 0.24.0
|
2021-08-11 17:38:10 +02:00 |
|
Devin Ragotzy
|
db755f994e
|
events: Make all pub enums non_exhaustive
|
2021-08-10 15:22:26 +02:00 |
|
Jonas Platte
|
2bd2d18db9
|
Release ruma-events 0.23.3
|
2021-07-26 15:06:13 +02:00 |
|