62 Commits

Author SHA1 Message Date
Jonas Platte
8e8be284fa
Release ruma-api 0.20.0 2022-02-19 14:54:57 +01:00
Jonas Platte
c1ce58b461
Release ruma-api 0.19.0 2022-02-19 01:43:01 +01:00
Jonas Platte
215cb35806
Clean up import grouping / ordering 2022-02-18 11:20:39 +01:00
Jonas Platte
f6d419298c
Revert "api: Allow cfg attributes on rate_limited and authentication metadata fields"
cfg-dependent metadata is no longer needed.
This reverts commit 1c0dab5a479737bc2ae83ff710321c191dd502f7.
2022-02-13 12:13:50 +01:00
Jonas Platte
aed0988694
api: Remove support for path metadata field 2022-02-13 11:44:32 +01:00
Jonas Platte
457726017b
api: Make metadata path field optional 2022-02-13 11:13:29 +01:00
Jonathan de Jong
4ccf79cb67
api: Add _path suffix to new path metadata keywords 2022-02-13 11:13:29 +01:00
Jonathan de Jong
f72d6601fc
ruma-api-macros: Fix argument ordering 2022-02-12 20:51:59 +01:00
Jonas Platte
ebb09589f9
Remove authors field from Cargo manifests
It's no longer necessary and authorship is much better tracked with git.
2022-02-12 13:46:44 +01:00
Jonathan de Jong
397727726e
api: Add multiple path support to OutgoingRequest 2022-02-12 13:44:11 +01:00
Jonathan de Jong
689d911cdc
api-macros: Simplify IncomingRequest impl generation 2022-02-09 17:54:57 +01:00
Jonathan de Jong
1e900ab58c
api: Add stable_path, r0_path and unstable_path metadata fields 2022-02-08 14:29:21 +01:00
Jonathan de Jong
0dcdb57c29
api: Add added, deprecated, and removed metadata fields 2022-02-08 10:52:43 +01:00
Jonathan de Jong
abd702cfbc
api: Don't extract request path arguments in IncomingRequest impls
… instead requiring callers to pass them as a list of strings.
Parsing is still done within the trait implementations though.
2022-02-02 11:57:29 +01:00
Jonas Platte
e0d7ea3ed1
api: Add manual_body_serde derive attribute for responses 2022-01-28 23:52:36 +01:00
ftilde
6b78988d39
ruma-api-macros: Avoid empty POST/PUT request bodys 2021-12-18 20:06:37 +01:00
Damir Jelić
ee3c8f3335 ruma: Fix a bunch of typos 2021-12-06 11:26:14 +01:00
Jonas Platte
aa5fdf9d22
Merge serde attributes and improve docs 2021-10-08 12:49:13 +02:00
Jonas Platte
a887dd7387
api-macros: Replace if-then-panic with assert 2021-09-30 20:14:09 +02:00
Jonas Platte
237b423996
Release ruma-api 0.18.5 2021-09-21 18:55:29 +02:00
Jonas Platte
7df5a0f09d
api: Fix inverse condition for sending application/json content-type 2021-09-21 18:54:10 +02:00
Jonas Platte
21e4c90cfa
Revert "client-api: Allow testing sync_events structs for exhaustiveness"
This reverts commit c816630058ab625d93ebab294e9e6c02dd9d866c.

Checking match exhaustiveness can now be done through the new
non_exhaustive_omitted_patterns lint.
2021-09-21 15:08:47 +02:00
Jonas Platte
8079e1c155
Release ruma-api 0.18.4 2021-09-21 11:33:18 +02:00
Jonas Platte
d16db420e3
api: Stop adding Content-Type to requests without any fields 2021-09-21 11:32:18 +02:00
Jonas Platte
ebd812bcda
Add missing semicolons 2021-09-13 19:02:33 +02:00
Jonas Platte
dc842f028f
Add missing commas 2021-08-30 17:34:20 +02:00
Jonas Platte
7a581038e3
Release ruma-api 0.18.3 2021-08-18 19:29:40 +02:00
Jonas Platte
15ec0bd78e
api-macros: Fix issues from previous refactoring 2021-08-16 22:37:06 +02:00
Jonas Platte
96ab1674af
api-macros: Use serde(transparent) for newtype bodies
… rather than special casing them in many places.
2021-08-16 22:23:30 +02:00
Jonas Platte
42fda7c89f
api: Rename newtype raw body => raw body 2021-08-16 22:23:30 +02:00
Jonas Platte
7ac3c369cc
Release ruma-api 0.18.2 2021-08-16 22:22:19 +02:00
Jonas Platte
eab96c7808
api-macros: Fix (de)serialization of newtype bodies 2021-08-16 22:18:14 +02:00
Jonas Platte
4e72c374b9
api-macros: Small refactor 2021-08-12 11:59:00 +02:00
Jonas Platte
7f457d6463
Release ruma-api 0.18.1 2021-08-11 17:34:45 +02:00
Jonas Platte
f83849f942
Release ruma-api 0.17.2
This is the same as the previously-released ruma-api 0.18.0; releasing
it with that version number was an error and it has been yanked.
2021-08-10 12:42:26 +02:00
Jonas Platte
65195cad0d
Release ruma-api 0.18.0 2021-08-10 12:38:12 +02:00
Jonas Platte
696c9fba4e
api-macros: Move ruma_api! trait impl generation into derive macros 2021-08-05 21:00:43 +02:00
Devin Ragotzy
3101be1f99
Add macro-braces, disallowed-type and import-rename clippy lints 2021-07-22 14:34:30 +02:00
Jonas Platte
9b2602649f
Stop special-casing zero fields in macro code 2021-07-09 15:10:22 +02:00
Jonas Platte
a59c43321f
api-macros: Refactor unique_lifetimes_to_tokens 2021-07-07 16:14:41 +02:00
Devin Ragotzy
82fca86d70 api-macro: Fix fields without cfg attributes being emitted 2021-07-04 07:55:51 -04:00
Jonas Platte
4dfaad104b
Enable clippy lint str_to_string 2021-07-02 23:02:50 +02:00
Jonas Platte
4200d6e387
Release ruma-api 0.17.1 2021-06-24 15:02:31 +02:00
Jonas Platte
f0a33c1a12
api: Remove unused derive in macro code
… which was relying on a syn feature not explicitly activated in the crate.
2021-06-24 15:02:24 +02:00
Jonas Platte
7708deda4e
Allow our proc-macros to be used when re-exported from matrix-sdk 2021-06-23 16:17:53 +02:00
Jonas Platte
5db8373117
api: Add missing anonymous lifetime 2021-06-20 12:27:51 +02:00
Jonas Platte
d467eaf621
api: Ignore SendAccessToken::Always on non-client-api endpoints 2021-06-20 12:17:17 +02:00
Jonas Platte
e622803679
Use bool::then to simplify some code 2021-06-17 19:43:22 +02:00
Jonas Platte
105bb9cf67
Use format_ident! in import helper functions 2021-06-06 15:59:22 +02:00
Devin Ragotzy
1f84de4c7f
ci: Add the --order flag to cargo sort 2021-06-04 20:20:36 +00:00