54 Commits

Author SHA1 Message Date
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
iinuwa
e5e89b8929
Use raw_body for bytes payload in doc examples. 2020-02-21 06:53:07 -06: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
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
b72bb25496
Move attributes after doc comment 2020-02-08 20:01:08 +01:00
Jonas Platte
c40735c3e8
Remove more reduntant imports 2020-02-07 11:47:34 +01:00
Jonas Platte
eb7c85325a
Remove redundant imports 2020-02-07 11:23:52 +01:00
Jonas Platte
542bef8c4a
Split the Error type in two 2020-02-07 01:04:23 +01:00
Jonas Platte
8a7e533fed
Update ruma_api! documentation 2020-01-13 20:13:08 +01:00
Jonas Platte
86aa04bc59
Implement #[ruma_api(raw_body)] 2020-01-06 23:27:31 +01:00
Jonas Platte
d68c59974d
Bump MSRV 2019-12-03 22:11:17 +01:00
Jonas Platte
9fa1305e65
Incorporate feedback by lu-fennell, Nauxuron 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
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
5a6557e7d7
Configure rustfmt to produce denser code 2019-11-19 11:01:31 +01:00
Jonas Platte
5c202dac49
Add #![warn(rust_2018_idioms)], fix warning 2019-11-12 01:17:52 +01:00
Jonas Platte
59056808de Remove #![deny(warnings)], #![warn(clippy::…)] 2019-11-02 14:15:49 +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
7e7041fbef Allow clippy::use_self 2019-10-29 11:02:25 +01:00
Jimmy Cuadra
4f03c4dce2 Re-export ruma-api-macros from ruma-api. 2019-08-02 16:08:35 -07:00
Jimmy Cuadra
70cd077f29 Update dependencies. 2019-07-25 10:19:57 -07:00
Jimmy Cuadra
bb5a159412 Tweak documentation and import names. 2019-07-25 10:04:49 -07:00
Jonas Platte
23a946c8df Simplify the Endpoint trait by using the Request type as Self 2019-07-21 01:20:49 +02:00
Jonas Platte
169b6cb9f9 Remove futures and hyper dependencies 2019-07-18 23:22:53 +02:00
Jimmy Cuadra
d5ce34d301 Address clippy warnings. 2019-06-12 13:16:52 -07:00
Jimmy Cuadra
0b75d2f1c3 Run rustfmt. 2019-06-12 13:03:47 -07:00
Jimmy Cuadra
432dbf94c8 Revise the error type to hide lower-level errors. 2019-06-12 12:37:55 -07:00
Jimmy Cuadra
a52e0da7c1 Add clippy lints and add rustfmt and clippy to CI. 2019-06-02 13:16:54 -07:00
Jimmy Cuadra
376b53613f Remove try_from feature. 2019-04-11 18:03:46 -07:00
Jonas Platte
561a254ca8 Replace serde_derive by re-exports in serde 2019-02-06 20:24:29 +01:00
Jonas Platte
282b952192 Update to Rust 2018 2019-01-13 21:42:45 +01:00
Jonas Platte
9d1e8180b8 Configure rustfmt for nested imports, re-run 'cargo fmt' 2019-01-08 20:17:28 +01:00
Jonas Herzig
c71b60ef70 Add convertion to/from Request/Response from/to http::Request/Response 2018-09-11 16:56:25 +02:00
Jonas Herzig
74dad12056 Fix test compilation 2018-09-11 15:00:52 +02:00
Jörg Sommer
d4578a835d Use Hyper::Body as default for Endpoint
This makes many code more compact.
2018-08-31 12:35:44 +02:00
Jörg Sommer
08c0d14221 Add Error(Hyper) for errors originated from Hyper
During the parsing of the HTTP responses an error might come from
*Hyper*. To pass this error down to the caller, we need an entry in
`Error`.
2018-08-31 12:31:46 +02:00
Jimmy Cuadra
474644ff66 Add a nonexhaustive variant to Error. 2017-09-08 17:32:42 -07:00
Jimmy Cuadra
9ff74ba776 Use the crates.io release of http. 2017-09-08 17:29:19 -07:00
Jimmy Cuadra
6ef1776aed rustfmt 2017-08-01 18:17:09 -07:00
Jimmy Cuadra
35c2e6edd8 Swap hyper for the http crate. 2017-08-01 18:05:44 -07:00
Jimmy Cuadra
4893be93f8 Impl conversion from serde_urlencoded errors. 2017-06-30 18:14:24 -07:00
Jimmy Cuadra
3635fe51ac Use FutureFrom instead of TryFrom for responses. 2017-05-14 04:00:54 -07:00
Jimmy Cuadra
517235b3e9 Add an error type. 2017-05-14 02:48:35 -07:00