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
Jonas Platte
e8858f119d
Fix outdated doc comment
2019-11-11 22:28:24 +01:00
Jonas Platte
e5a3027b3b
Add CHANGELOG.md, ruma-api-macros/CHANGELOG.md
2019-11-04 11:37:56 +01:00
Jonas Platte
0889d1e0ef
Fix version of ruma-api-macros
2019-10-29 20:06:16 +01:00
Jonas Platte
4a03892ad6
Bump versions
2019-10-29 20:05:07 +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
481f4c682c
Remove unnecessary main declaration in doctest
...
(found by clippy)
2019-10-29 12:01:09 +01:00
Jonas Platte
7e7041fbef
Allow clippy::use_self
2019-10-29 11:02:25 +01:00
Jonas Platte
1c57a2380d
Disable clippy lint cognitive_complexity for ruma-api-macros
2019-08-16 23:22:34 +02:00
Jonas Platte
3b3744153f
Update dependencies
2019-08-16 21:42:26 +02:00
Jimmy Cuadra
ef2535a7c2
Bump ruma-api-macros to 0.7.1.
2019-08-02 18:41:03 -07:00
Jimmy Cuadra
d8830770db
Remove ruma-api as a dependency from ruma-api-macros.
2019-08-02 18:40:21 -07:00
Jimmy Cuadra
12cfa48fc5
Bump ruma-api-macros to 0.7.0.
2019-08-02 17:50:11 -07:00
Jimmy Cuadra
97c1a37f0c
Update homepage and repository URLs for ruma-api-macros.
2019-08-02 17:49:06 -07:00
Jimmy Cuadra
4436bbfe5d
Update ruma-api-macros README and remove redundant files.
2019-08-02 17:47:56 -07:00
Jimmy Cuadra
3e9fd80a7e
Update dependencies and remove unnecessary ones.
2019-08-02 17:45:18 -07: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