Jonas Platte
|
cbdbc0c38f
|
Remove url crate dependency
|
2020-04-17 19:17:26 +02:00 |
|
Jonas Platte
|
0238a72b59
|
Serialize an empty JSON object as body for responses without body fields
|
2020-04-15 22:04:27 +02:00 |
|
Ragotzy.devin
|
6a0ab987b5
|
Enable deserialization of unsuccessful responses
Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>
|
2020-03-17 01:07:12 +01:00 |
|
Donough Liu
|
c346b4f681
|
Emit error on non-UTF8 characters in path segments
|
2020-03-07 17:06:24 +01:00 |
|
Jonas Platte
|
8e7325cdcc
|
Simplify request path deserialization by removing RequestPath struct
|
2020-02-18 21:05:21 +01:00 |
|
Jonas Platte
|
810bf56874
|
Add strum::ParseError variant to DeserializationError
|
2020-02-18 20:58:29 +01:00 |
|
Jonas Platte
|
9861aa20c8
|
Fix path segments being parsed as JSON
|
2020-02-17 22:12:18 +01:00 |
|
Jonas Platte
|
a811a709ec
|
Implement Debug for Incoming types
|
2020-02-10 10:54:56 +01:00 |
|
Jonas Platte
|
89f8d0f656
|
Further split the error types
|
2020-02-08 21:44:02 +01:00 |
|
Jonas Platte
|
abb278c85a
|
Simplify path segment deserialization code
|
2020-02-08 20:48:50 +01:00 |
|
Jonas Platte
|
542bef8c4a
|
Split the Error type in two
|
2020-02-07 01:04:23 +01:00 |
|
Jonas Platte
|
86aa04bc59
|
Implement #[ruma_api(raw_body)]
|
2020-01-06 23:27:31 +01:00 |
|
Jonas Platte
|
b6394a32b7
|
ruma_client_api: Simplify Response::init_fields
|
2020-01-06 12:20:48 +01:00 |
|
Jonas Platte
|
af7333203a
|
Use quote::format_ident!
|
2019-12-13 20:30:12 +01:00 |
|
Jonas Platte
|
d68c59974d
|
Bump MSRV
|
2019-12-03 22:11:17 +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
|
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 |
|
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
|
65568dbf1b
|
Update ruma_api! docs
|
2019-11-20 23:36:11 +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
|
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 |
|