80 Commits

Author SHA1 Message Date
Jonas Platte
8e247a5ce2
Release ruma-api 0.17.0-alpha.2 2021-01-02 14:58:00 +01:00
Jonas Platte
b95ab27272
Release ruma-events 0.22.0-alpha.2 2021-01-02 14:49:00 +01:00
Jonas Platte
6d468b88a3
Release ruma-identifiers-validation 0.2.0 and ruma-identifiers 0.18.0-alpha.1 2021-01-02 13:31:08 +01:00
Jonas Platte
2ebd827355
Release ruma-serde 0.3.0 2021-01-02 13:04:39 +01:00
Jonas Platte
f55e2b2cc6
Bump dependency requirements 2020-12-24 02:48:01 +01:00
Jonas Platte
95d21552e0
Use a dedicated method for conversion from http::Request to Ruma request types 2020-12-13 12:59:21 +01:00
Jonas Platte
b38ae1bb76
api: Improve docs for AuthScheme variants 2020-12-13 12:21:19 +01:00
Jonas Platte
5562a23aaa
Move Raw, Outgoing and all macro code from ruma-common to ruma-serde 2020-11-28 03:45:39 +01:00
Jonas Platte
8ccf0f128b
Normalize formatting of empty curly braces 2020-11-27 23:07:32 +01:00
Jonas Platte
e7f55ea2c6
Rewrap comments 2020-11-27 18:22:18 +01:00
Jonas Platte
d34a270919
Allow custom values for more enums 2020-11-02 00:29:47 +01:00
Devin Ragotzy
c15382ca41
api-macros: Make Response header fields override any defaults 2020-11-01 14:04:34 +01:00
Jonas Platte
e1975c2035
Be more consistent about whitespace 2020-10-24 00:44:01 +02:00
skim
5b904ddbd7
Update links to main branch 2020-10-13 10:24:54 +02:00
Devin Ragotzy
b3196d7f64
Enforce public visibility of all fields of structs deriving Outgoing 2020-10-03 11:39:32 +02:00
Jonas Platte
006582e3f2
Various README updates 2020-09-29 20:30:33 +02:00
Jonas Platte
8b9e20b842
Fix outdated links 2020-09-29 20:10:54 +02:00
Jonas Platte
565e3a1ee7
Merge LICENSE files
The Copyright notice is taken out because no single person has a
copyright to the entire codebase.
2020-09-26 15:52:52 +02:00
Jonas Platte
fdd326edf7
Move Outgoing from ruma-api to ruma-common
The derive macro moves from ruma-api-macros to a new ruma-common-macros
crate likewise.
2020-09-22 21:35:10 +02:00
Jonas Platte
d36f82faeb
api: Use thiserror to derive many Display + Error implementations 2020-09-22 01:48:45 +02:00
Jonas Platte
bf27285766
api: Import-rename std::error::Error 2020-09-22 01:43:16 +02:00
Vincent Lee
d36d005b97
Change requires_authentication: bool to authentication: AuthScheme 2020-09-18 16:28:51 +02:00
Jonas Platte
01c7eef72f
Consistently put an empty line after inner module docs 2020-08-24 21:42:48 +02:00
Devin Ragotzy
a8b4bad684
Support optional header values in request/response types 2020-08-21 19:53:46 +02:00
Jonas Platte
30a0a39d2b
Outgoing derive: Replace incoming_no_deserialize with incoming_derive(!Deserialize) 2020-08-17 22:08:56 +02:00
Devin Ragotzy
a6c1b8f0bd
Parse and emit attributes connected to the request/response defs in ruma_api macro 2020-08-14 00:01:19 +02:00
Jonas Platte
c1b4b77bbd
api: Update change log 2020-08-12 23:43:57 +02:00
Jonas Platte
987d48666c
Split Endpoint trait into OutgoingRequest, IncomingRequest 2020-08-12 23:33:27 +02:00
Jonas Platte
abc34eeb7e
Move manual endpoint impl test into its own file 2020-08-12 23:33:27 +02:00
Jonas Platte
52f7546c47
Make most things in ruma_api::error actually public (no more #[doc(hidden)])
So people can implement their own endpoints without the macros and
without using undocumented parts of the API
2020-08-12 23:33:27 +02:00
Jonas Platte
835c721a12
Fix non-empty Void 2020-08-12 14:21:50 +02:00
Devin Ragotzy
906465d0c3
Replace all ::ruma_api:: with the discovered crate name or $crate 2020-08-12 14:01:43 +02:00
florianjacob
467e7afd5e
Require std::error::Error for EndpointError
and implement it for ruma_api::error::FromHttpResponseError and Void.
This allows integrating EndpointErrors in the common rust error
ecosystem like thiserror and anyhow.
2020-08-12 14:00:44 +02:00
Jonas Platte
9cf552f361
Add Endpoint::{IncomingRequest, IncomingResponse}
With these, it is no longer necessary to copy over the Endpoint trait's
where clauses whenever it is used as a bound
2020-08-09 03:18:14 +02:00
Devin Ragotzy
f455d4c8ab
Remove Response lifetime generation code in ruma_api macro
… and enforce that there are no lifetimes in response {}
2020-08-09 03:01:19 +02:00
Jonas Platte
a0a1987bbf
Small style fix 2020-08-09 00:01:50 +02:00
Jonas Platte
1fbf05d71f
Fix some bad formatting 2020-08-08 21:52:58 +02:00
Jonas Platte
0366466792
Use toplevel imports in ruma_api! expansion 2020-08-08 21:23:07 +02:00
Jonas Platte
d6d84a9a70
Bump ruma-identifiers version 2020-08-08 18:28:23 +02:00
Jonas Platte
a1916837f9
Bump ruma-identifiers version 2020-08-08 16:21:11 +02:00
Jonas Platte
c2cf8682e6
Don't use * imports in ruma_api_lifetime test 2020-08-08 13:23:57 +02:00
Jonas Platte
30e73186e7
Bump dependencies 2020-08-07 19:13:00 +02:00
Devin Ragotzy
7e3ebff089 Add tests testing failing Outgoing derive for query fields 2020-08-07 00:48:01 +02:00
Devin Ragotzy
4e2f1a19e1 Fix typo and rename copy_lifetime_ident -> collect_lifetime_ident 2020-08-07 00:48:01 +02:00
Devin Ragotzy
588a6035f0 Use Outgoing trait in ruma_api_lifetime tests 2020-08-07 00:48:01 +02:00
Devin Ragotzy
2beaf450a3 Add a query_map field to ruma_api! lifetime test 2020-08-07 00:48:01 +02:00
Devin Ragotzy
c980644d77 Clean up and fix missing comma for request query map 2020-08-07 00:48:01 +02:00
Devin Ragotzy
f0a5a43455 Move lifetime tests into their own file 2020-08-07 00:48:01 +02:00
Devin Ragotzy
e7f7c3bb9d Add lifetime params to Request/Response when needed 2020-08-07 00:48:01 +02:00
Devin Ragotzy
c2342e3ef7 Add failing test to ruma-api for lifetimes in ruma_api! macro 2020-08-07 00:48:01 +02:00