851 Commits

Author SHA1 Message Date
Jonas Platte
401c0b07b3
Fix clippy warnings 2021-10-19 22:15:59 +02:00
Jonas Platte
0e49b70d65
Raise MSRV to 1.55
Otherwise `cargo check` errors on the `-Wclippy::…` arguments from
`.cargo/config.toml`.
Usage as a dependency continues to work with 1.53 for now, but since
it's not changed this could soon change.
2021-10-19 21:36:39 +02:00
Kevin Jones
21487aacdc
federation-api: Fix version discovery endpoint 2021-10-19 15:39:09 +00:00
Jonas Platte
1bb9298059
Update clippy configuration 2021-10-19 14:34:51 +02:00
Jonas Platte
cda6119224
client-api: Fix unused import 2021-10-15 21:04:31 +02:00
Jonas Platte
58cdcae1f9
client-api: Fix login request deserialization 2021-10-15 17:09:02 +02:00
Jonas Platte
44cfd0adbc
ruma: Re-export unstable-pdu feature from ruma-events 2021-10-12 20:57:15 +02:00
Tilo Spannagel
8fcd58c8de
events: Add markdown constructors to RoomMessageEventContent 2021-10-11 09:31:30 +02:00
Jonas Platte
b3af33f1fc
client-api: Consistently use outer attributes for cfg-conditional modules 2021-10-08 12:50:41 +02:00
Jonas Platte
aa5fdf9d22
Merge serde attributes and improve docs 2021-10-08 12:49:13 +02:00
Jonas Platte
271491732e
Remove now-redundant doc(cfg) attributes
They are now implied:
https://github.com/rust-lang/rust/pull/89596
2021-10-08 11:52:18 +02:00
Jonas Platte
343bb2a67b
events-macros: Fix wrong variable name 2021-10-07 00:15:19 +02:00
Jonas Platte
fd15dcda9f
events-macros: Get rid of lots of unwrapping 2021-10-07 00:13:57 +02:00
Jonas Platte
9103ad74bb
events-macros: Reorganize event impl generation 2021-10-07 00:07:15 +02:00
Jonas Platte
7a4af83207
events-macros: Finish codegen reorganization 2021-10-06 23:49:39 +02:00
Jonas Platte
6d3d6c92db
events-macros: Refactor expand_redacted_enum 2021-10-06 23:09:23 +02:00
Jonas Platte
c14a0edf15
events-macros: Refactor accessor method codegen 2021-10-06 23:03:51 +02:00
Jonas Platte
4229adfc05
events-macros: Further re-organize enum codegen 2021-10-06 22:54:29 +02:00
Jonas Platte
f699a52983
events-macros: Partial re-organize enum codegen 2021-10-06 22:17:47 +02:00
Jonas Platte
0a679816a9
events-macros: Pass EventKind and EventKindVariation by value 2021-10-06 22:08:11 +02:00
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
02889b1fb4
events: Use Self alias in AnyMessageEventContent::relation 2021-10-06 21:40:45 +02:00
Jonas Platte
142f1800df
Bump MSRV to 1.53 2021-10-06 21:37:46 +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
3550ed9b1e
events: Add more trailing commas 2021-10-06 20:29:55 +02:00
Devin Ragotzy
e7302c914a
Fix identity-service spec link 2021-10-06 10:48:08 +02:00
Devin Ragotzy
52bea1d9b4
Update server-server spec links 2021-10-06 10:48:08 +02:00
Devin Ragotzy
bdcfc12ac7
Update client-server spec links 2021-10-06 10:48:08 +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
330754e6f8
events: Get rid of unnecessary Raw usage in a test 2021-10-02 21:16:08 +02:00
Jonas Platte
cb78a7f341
identifiers: Declare room versions 7, 8, 9 2021-10-02 18:16:19 +02:00
Jonas Platte
234616c69e
events: Update change log 2021-10-02 14:26:31 +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
3ee4ac08fb
events: Fix a test case 2021-10-02 13:08:19 +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