772 Commits

Author SHA1 Message Date
Callum Brown
975efcd2ee
client-api: Add registration token validity checking endpoint 2021-11-09 12:30:30 +00:00
Jonas Platte
a9ecd7f397
client-api: Break up the ill-named contacts module 2021-11-09 11:41:21 +01:00
Jonas Platte
ac6ecc3e5e
push-gateway-api: Make data field of Device not an Option
All fields of the inner type are optional themselves.
2021-11-05 12:57:26 +01:00
Jonas Platte
103b9df6c2
common: Add unstable support for default_payload field in PusherData 2021-11-05 12:49:43 +01:00
Jonas Platte
44e8db7878
client-api: Feature-gate function that's only required for compat feature 2021-11-03 18:42:45 +01:00
Jonas Platte
21d3d75172
client-api: Fix up previous botched PRs 2021-11-03 18:31:38 +01:00
Jonas Platte
347ae72531
client-api: Revert change of serialized name of thredparty_id_creds under compat feature 2021-11-03 18:26:31 +01:00
Jonas Platte
8b0687b08c
client-api: Add support for deserializing thirdparty_id_creds from an object 2021-11-03 18:23:05 +01:00
Jonas Platte
076420d798
client-api: Fix serde attributes 2021-11-03 18:13:58 +01:00
Jonas Platte
d4df8ac76d
client-api: Change serialized name of thirdparty_id_creds in compat mode 2021-11-03 18:08:37 +01:00
Jonas Platte
0ea6dca815
client-api: Support alternative name for thirdparty_id_creds fields 2021-11-03 18:05:35 +01:00
Imbolc
795fde03dd
serde: Add test for empty_string_as_none with absent field 2021-11-02 21:10:49 +00:00
Jonas Platte
c00518599e
Update example on ruma_serde::empty_string_as_none 2021-11-02 14:37:45 +01:00
Jonas Platte
56801780b6
Fix clippy lints 2021-10-29 23:11:24 +02:00
Jonas Platte
a2570e1648
common: Fix unnecessary .to_string() call 2021-10-29 23:00:37 +02:00
Jonas Platte
bccbde6f83
api: Remove {Request,Response}DeserializationError 2021-10-29 22:44:15 +02:00
Jonas Platte
5a96cbf322
Silence buggy clippy lint 2021-10-29 22:41:14 +02:00
Jonas Platte
0c1e1df8ad
events: Fix test
… wasn't failing CI because `#[test]` attribute was missing.
2021-10-29 22:13:44 +02:00
Jonas Platte
3ea16b6d09
events: Update comment, silence lint 2021-10-29 22:13:26 +02:00
Jonas Platte
f634be9838
client-api: Add missing periods in docs 2021-10-28 21:32:14 +02:00
Jonas Platte
e7f01ca55a
client-api: Use Raw for create_room::Request::creation_content 2021-10-24 00:43:49 +02:00
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