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
Jimmy Cuadra
5a4661c408
Revise API to convert between associated types and Hyper request/response types.
2017-05-11 02:39:22 -07:00
Jansen Jan
b3eb392ce5
Add flags and change String to &'static str
2017-01-07 15:10:55 +01:00
Jimmy Cuadra
f88588f392
Require that Endpoint::QueryParams be Deserialize + Serialize.
2017-01-07 05:19:45 -08:00
Jimmy Cuadra
0fd9fb4889
ruma-api
2016-12-15 01:50:31 -08:00