Jonas Platte
4671fa3e4d
api: Properly document request, response macros
2022-11-01 10:04:45 +01:00
Jonas Platte
f613137b31
macros: Add response attribute macro
2022-11-01 09:39:11 +01:00
Jonas Platte
a83a8e7170
appservice: Move msc2409 types from push_events to push_events::v1
...
… for consistency with other types.
2022-10-31 11:09:47 +01:00
Jonas Platte
452de45c74
ruma: Re-export appservice MSC features
...
… and test them in CI.
2022-10-31 10:57:20 +01:00
Jonas Platte
0afba1a5d0
appservice-api: Fix push_events test not compiling with unstable features
2022-10-31 10:55:05 +01:00
Jonas Platte
664638299b
appservice-api: Upgrade serde_yaml dev-dependency
2022-10-31 10:52:24 +01:00
Jonas Platte
4aa10d9806
appservice-api: Sort features in Cargo.toml
2022-10-31 10:51:47 +01:00
Jonas Platte
1c46655fdf
Upgrade criterion
2022-10-31 10:38:26 +01:00
Jonas Platte
ff70c20063
events: Fix required-features of event_deserialize benchmark
2022-10-31 10:37:55 +01:00
Jonas Platte
af97ddaa58
macros: Remove unnecessary type distinction
2022-10-31 10:00:50 +01:00
Jonas Platte
b7c47c9e70
macros: Always implement IncomingRequest trait on IncomingRequest type
...
… rather than the `Request` type, even if `IncomingRequest` is a type
alias for it.
This (only) affects where the implementation is shown in the
documentation.
2022-10-31 09:58:36 +01:00
Emelie Graven
920e51b468
appservice-api: Add types for MSC2409
2022-10-28 08:40:38 +00:00
Jonas Platte
74dab985aa
api: Use metadata macro from ruma_api!
2022-10-28 10:39:21 +02:00
Jonas Platte
b9ec4db8f0
api: Add metadata! macro for easy Metadata construction
...
Co-authored-by: Jonathan de Jong <jonathan@automatia.nl>
2022-10-28 10:39:21 +02:00
Jonas Platte
ec67fcbd6f
api: Use VersionHistory::new from ruma_api!
...
… and remove a now-redundant check from the macro code.
2022-10-28 10:38:52 +02:00
Jonathan de Jong
e783d77db7
api: Add VersionHistory
const fn new
2022-10-26 18:00:46 +02:00
Jonathan de Jong
7e1fd603e6
Bump MSRV to 1.64
2022-10-26 17:22:23 +02:00
Jonas Platte
c7e84c5249
Fix clippy lints
...
Automated using `cargo clippy --fix`.
2022-10-26 13:38:29 +02:00
Jonas Platte
f22857e682
macros: Add request attribute macro
2022-10-24 15:28:50 +02:00
Jonas Platte
c021a14b60
macros: Rename error_ty => error
2022-10-24 15:28:50 +02:00
Jonas Platte
1be2def65a
Revert "api: Remove error_ty from Request and Response derive attributes"
...
This reverts commit 1989e0350d61ca769b258ce5f2f48360dc4b3f3c.
2022-10-24 15:28:50 +02:00
Jonas Platte
54183bd748
Fix double space
2022-10-24 15:25:26 +02:00
Jonas Platte
876e8e38aa
macros: Simplify Response derive attribute parsing
2022-10-22 12:25:27 +02:00
Jonas Platte
dff84efb0c
api: Remove authentication from Request derive attributes
2022-10-22 12:25:27 +02:00
Jonas Platte
c9bd9bf00b
api: Remove NonAuthRequest traits
2022-10-22 12:24:22 +02:00
Jonas Platte
1989e0350d
api: Remove error_ty from Request and Response derive attributes
2022-10-22 12:24:22 +02:00
Jonas Platte
e7e39a6af1
api: Remove method from Request derive attributes
2022-10-22 12:24:21 +02:00
Jonas Platte
70c5e84107
macros: Remove unnecessary self:: qualitication
2022-10-22 11:29:58 +02:00
Jonas Platte
ec31badd84
api: Replace path fields in Metadata with new VersionHistory type
...
Co-authored-by: Jonathan de Jong <jonathan@automatia.nl>
2022-10-22 11:17:55 +02:00
Jonas Platte
451a50a77b
api: Add missing cfg for test
2022-10-22 11:12:52 +02:00
Jonas Platte
6642686b58
macros: Remove unused custom keywords
2022-10-22 11:12:52 +02:00
gnieto
dcff5a0737
events: Make name on SecretStorageKeyEventContent optional
...
The spec has the `name` field marked as optional.
See: https://spec.matrix.org/v1.4/client-server-api/#key-storage
2022-10-22 08:29:13 +00:00
Kévin Commaille
045861441a
doc: Update Matrix spec links to v1.4
2022-10-21 10:41:20 +02:00
Kévin Commaille
2fe7265188
doc: Fix sanitize feature name
2022-10-21 10:40:33 +02:00
Kévin Commaille
a3675e61bf
events: Add method to construct a replacement
2022-10-21 10:40:33 +02:00
Jonas Platte
764e96a254
api: Enforce consistent path field order
2022-10-20 20:51:09 +02:00
Jonas Platte
6ec01bfdb4
client-api: Reorder path fields
2022-10-20 20:51:09 +02:00
Kévin Commaille
21bda6678d
events: Enable more markdown syntax
...
Enable markdown extensions that produces spec-compliant HTML.
2022-10-19 21:44:33 +02:00
Kévin Commaille
a710229d9d
events: Fix markdown content detection
...
Encoded HTML entities would be detected as a change.
Use the parsed events instead to check if markdown syntax was detected.
2022-10-19 21:44:33 +02:00
Kévin Commaille
7ab6e3ed02
federation-api: Add the event field to RoomState
...
According to MSC3083
2022-10-19 12:17:41 +02:00
Emelie Graven
27f27d5298
feat: Add MSC3202 types for E2EE appservices
2022-10-18 12:26:48 +02:00
Jonas Platte
3c3c6f388f
Merge branch 'ruma-0.7'
2022-10-18 09:14:16 +02:00
Jonas Platte
bc67b9aae3
Release ruma-client-api 0.15.3
2022-10-18 09:12:14 +02:00
Jonas Platte
67b2ec7d34
Release ruma-common 0.10.5
2022-10-18 09:09:59 +02:00
Kévin Commaille
7c0f7ba5f1
events: Make Replacement generic over the parent type
...
Because the new content must be of the same type.
2022-10-17 20:27:49 +02:00
Kévin Commaille
7c802c89ca
events: Remove conversions between extensible types and room messages
...
They are more difficult to implement and use with
generic replacements, for little gain.
2022-10-17 20:27:49 +02:00
Kévin Commaille
ec853e968a
events: Generate structs without relation for events that can be replaced
2022-10-17 20:27:49 +02:00
Jonas Platte
6ec7fc09ea
Merge branch 'ruma-0.7'
2022-10-17 18:05:42 +02:00
Jonas Platte
c8dacdbbab
Release ruma-client-api 0.15.2
2022-10-17 18:03:29 +02:00
Jonas Platte
7dd567a7c7
client-api: Don't include extra field in Debug-format of login::CustomLoginInfo
2022-10-17 18:01:40 +02:00