67 Commits

Author SHA1 Message Date
Jonas Platte
9063f4c526
Update change logs 2019-12-13 12:08:35 +01:00
Jonas Platte
08a3d820be
Release ruma-api-macros 0.9.0, ruma-api 0.12.0 2019-12-12 20:48:40 +01:00
Jonas Platte
d68c59974d
Bump MSRV 2019-12-03 22:11:17 +01:00
Jonas Platte
f7c6bd7d4e
Update deps, make alpha releases 2019-11-28 21:58:45 +01:00
Jonas Platte
81207890b6
Simplify ruma-api-macros codegen 2019-11-28 21:52:48 +01:00
Jonas Platte
3696516679
Fix support for tuple structs in Outgoing derive 2019-11-28 21:43:50 +01:00
Jonas Platte
9fa1305e65
Incorporate feedback by lu-fennell, Nauxuron 2019-11-27 19:28:54 +01:00
Jonas Platte
7d340942a0
Error when derive(Outgoing) is used on a type with generics 2019-11-27 19:28:54 +01:00
Jonas Platte
d94e15e38c
Rename SendRecv to Outgoing 2019-11-27 19:28:54 +01:00
Jonas Platte
4c1d6b4b58
Add documentation for SendRecv 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
14fa10af6b
Update ruma-api-macros/README.md 2019-11-26 00:08:39 +01:00
Jonas Platte
02a9a6494d
Update ruma-api-macro's crate docs 2019-11-26 00:05:36 +01:00
Jonas Platte
0f803e2acf
Move documentation of ruma_api! from ruma-api-macros to ruma-api 2019-11-25 22:44:43 +01:00
Jonas Platte
15f875a06e
Bump MSRV 2019-11-22 11:03:48 +01:00
Jonas Platte
924cd4c36c
Update changelogs, bump versions 2019-11-21 11:53:37 +01:00
Aaron DeVore
ca5344582b Fix inverted logic in strip_serde_attrs 2019-11-20 23:22:26 -08:00
Jonas Platte
d83c79d444
Fix doctest that was accidentally not ignored 2019-11-20 23:53:38 +01:00
Jonas Platte
6f5c2833ba
Bump versions 2019-11-20 23:38:36 +01:00
Jonas Platte
65568dbf1b
Update ruma_api! docs 2019-11-20 23:36:11 +01:00
Jonas Platte
d054bbb407
Update changelogs 2019-11-20 23:28:50 +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
a969fcf625
Update dependencies, use one line per dep in toml files 2019-11-19 10:59:11 +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
02e9ff2ae6
Update macro crate's attributes 2019-11-16 00:44:03 +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
fa9ec7f145
Update doc comment 2019-11-15 20:37:29 +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