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
|
6642686b58
|
macros: Remove unused custom keywords
|
2022-10-22 11:12:52 +02:00 |
|
Jonas Platte
|
764e96a254
|
api: Enforce consistent path field order
|
2022-10-20 20:51:09 +02:00 |
|
Kévin Commaille
|
739c35aaca
|
api: Allow to use any HeaderName with the header keyword of ruma_api
|
2022-10-10 19:09:39 +02:00 |
|
Kévin Commaille
|
d55573a555
|
api: Remove AuthScheme::QueryOnlyAccessToken
It is no longer used by the Appservice API.
|
2022-10-02 15:08:31 +02:00 |
|
Jonas Platte
|
715c226975
|
api: Make select_path and make_endpoint_url methods on Metadata
… and remove #[doc(hidden)] attribute.
|
2022-09-29 15:49:39 +02:00 |
|
Jonas Platte
|
8290d712f2
|
api: Move the majority of endpoint URL building out of macro code
|
2022-09-29 15:49:39 +02:00 |
|
Jonas Platte
|
a6e23d731e
|
api: Slighty reduce the amount of macro-generated code
By moving format(_args)! usage into a regular fn and calling that from
the proc-macro-generated code.
|
2022-09-29 15:49:39 +02:00 |
|
Jonas Platte
|
2dbaf19ded
|
macros: Refactor ResponseField
|
2022-09-26 16:03:05 +02:00 |
|
Jonas Platte
|
a59a648d04
|
macros: Refactor RequestField
|
2022-09-26 15:48:45 +02:00 |
|
Jonas Platte
|
c745d3baf7
|
Fix clippy lint
|
2022-09-02 14:07:28 +02:00 |
|
Marcel Hellwig
|
92f862e279
|
macros: Generate certain structs only with client or server feature enabled
If neither the client, nor the server feature is enabled the fields are
unused and therefore trigger the dead_code lint.
|
2022-06-22 14:15:37 +02:00 |
|
Jonas Platte
|
8912182c56
|
Increase usage of implicit named arguments in format strings
|
2022-06-03 10:06:28 +02:00 |
|
Jonas Platte
|
73c2963ebd
|
Enforce consistent semicolons after () -typed expressions in blocks
|
2022-06-03 08:40:16 +02:00 |
|
Jonas Platte
|
5f902851af
|
Upgrade to Rust 2021
|
2022-05-27 12:04:23 +02:00 |
|
Kévin Commaille
|
734770d2bc
|
macros: Refactor ruma_api attributes parsing
|
2022-05-23 21:51:47 +02:00 |
|
Jonas Platte
|
05ad164d21
|
macros: Fix errors from unused serde attributes with only server feature active
|
2022-03-25 12:26:52 +01:00 |
|
Jonas Platte
|
7a5be040fd
|
macros: Reduce codegen by feature-gating Serialize and Deserialize derives
… this makes it faster to compiler ruma-*-api with either the client or
server feature inactive.
|
2022-03-24 18:08:21 +01:00 |
|
Jonas Platte
|
a6a530dcc8
|
serde: Rename derive macro Outgoing to Incoming
All it does now is generate `Incoming{Self}` types.
|
2022-03-22 13:19:03 +01:00 |
|
Jonas Platte
|
4e7eeb8aa4
|
macros: Slightly simplify generated API trait impls
|
2022-03-22 13:19:03 +01:00 |
|
Jonas Platte
|
e3a8b6b81f
|
macros: Don't generate unused Outgoing structs
They are only needed when the server feature is active.
|
2022-03-22 13:19:03 +01:00 |
|
Kévin Commaille
|
bdcf07be87
|
common: Merge ruma-serde into ruma-common
|
2022-03-10 12:11:00 +01:00 |
|
Kévin Commaille
|
bdd54d1dd3
|
macros: Use import_ruma_common instead of import_ruma_api
|
2022-03-10 11:00:27 +01:00 |
|
Kévin Commaille
|
f32dcb9254
|
common: Merge ruma-api into ruma-common
|
2022-03-03 14:01:51 +01:00 |
|
Kévin Commaille
|
0d49715f29
|
macros: Merge ruma-api-macros into ruma-macros
|
2022-03-02 15:19:16 +01:00 |
|