Jonas Platte
d94e15e38c
Rename SendRecv to Outgoing
2019-11-27 19:28:54 +01:00
Jonas Platte
f558b55692
Add SendRecv trait + derive macro to allow receiving requests, sending responses
2019-11-27 19:28:54 +01:00
Jonas Platte
e383ae98ea
Revert "Remove server-side functionality"
...
This reverts commit 958a0a01c47c051eebf493234c314bc101609f63.
2019-11-27 19:28:54 +01:00
Jonas Platte
8c898f3766
ruma-api-macros: Use syn::Path::is_ident
2019-11-20 23:10:43 +01:00
Wim de With
f0e724d391
Add query_map attribute to ruma_api
2019-11-20 14:31:38 +01:00
Jonas Platte
71372ae910
ruma-api-macros: mv src/api/mod.rs src/api.rs
2019-11-19 11:25:41 +01:00
Jonas Platte
5a6557e7d7
Configure rustfmt to produce denser code
2019-11-19 11:01:31 +01:00
Jonas Platte
6b14591d31
ruma-api-macros: Rewrite a few leftover errors without spans
2019-11-18 22:52:14 +01:00
Jonas Platte
9b3eef4f8d
ruma-api-macros: Add more error spans for response block
2019-11-18 22:36:37 +01:00
Jonas Platte
c277c0d257
ruma-api-macros: Add more error spans for request block
2019-11-18 22:31:04 +01:00
Jonas Platte
eab2374253
ruma-api-macros: Slight simplification of api/attribute.rs
2019-11-18 02:22:00 +01:00
Jonas Platte
6ea5b9b7a1
Fix 1.34.2 incompatibility from last commit
2019-11-18 00:06:46 +01:00
Jonas Platte
41c1a224c2
ruma-api-macros: Improve error handling for invalid metadata
2019-11-17 23:53:19 +01:00
Jonas Platte
8fe74552b1
Remove unnecessary cloning
2019-11-16 16:46:43 +01:00
Jonas Platte
3e8938fc1a
ruma-api-macros: Remove ref from match bindings
...
since it is no longer necessary with our MSRV
2019-11-16 16:00:21 +01:00
Jonas Platte
2261067251
ruma_api_macros: Use find_map in Request::newtype_body_field
2019-11-16 15:58:48 +01:00
Jonas Platte
d0d1d97ee4
ruma_api_macros: Simplify RequestField::as_* methods
2019-11-16 15:58:35 +01:00
Jonas Platte
772c378fe2
ruma_api_macros: Use find_map in Response::newtype_body_field
2019-11-16 15:43:01 +01:00
Jonas Platte
18ed83ef76
Fix a few bugs in ruma_api_macros
2019-11-16 15:21:18 +01:00
Jonas Platte
2b9742b99e
Slightly simplify ruma_api! expansion code
2019-11-16 14:06:02 +01:00
Jonas Platte
69ee18e0a9
Simplify ruma_api_macros::api::strip_serde_attrs
2019-11-16 14:05:23 +01:00
Jonas Platte
4d8cc3624f
Partially revert previous changes
...
since they were preparing for something that's now not going to happen,
namely a use case for multiple meta items in one #[ruma_api(..)] attribute
2019-11-16 00:40:31 +01:00
Jonas Platte
1334b6c9d9
Update readme, remove pointless newline
2019-11-15 22:44:30 +01:00
Jonas Platte
9699f5c68f
Allow ruma_api attributes to contain multiple items, forbid some nonsensical attribute usage
2019-11-15 22:24:45 +01:00
Jonas Platte
68aaa59eda
Update formatting in quote! invocations
2019-11-11 23:06:21 +01:00
Jonas Platte
d6f1926832
Disallow body fields in GET endpoints
2019-11-11 22:55:04 +01:00
Jonas Platte
c8f1342144
Disallow multiple ruma_api(body) attributes in one request / response
2019-11-11 22:32:10 +01:00
Jonas Platte
47267cc2ba
Slightly simplify attribute parsing code
2019-11-11 22:28:43 +01:00
Jonas Platte
958a0a01c4
Remove server-side functionality
...
This is a temporary change that is done to get one release of
ruma-client-api with ruma-events' EventResult API out. After ruma-api
0.11 is released, getting the server-side functionality to work again
will be a priority.
2019-10-29 12:11:38 +01:00
Jonas Platte
3b3744153f
Update dependencies
2019-08-16 21:42:26 +02:00
Jimmy Cuadra
4f03c4dce2
Re-export ruma-api-macros from ruma-api.
2019-08-02 16:08:35 -07:00
Jimmy Cuadra
e291730288
Add 'ruma-api-macros/' from commit '02bcb5f0384340d3a722ae93cdb0b74015902c7e'
...
git-subtree-dir: ruma-api-macros
git-subtree-mainline: 954b24f2bbda1617aaa80889ee1dd01f742a4164
git-subtree-split: 02bcb5f0384340d3a722ae93cdb0b74015902c7e
2019-08-02 13:51:32 -07:00