78 Commits

Author SHA1 Message Date
Jonas Platte
e44087f8b8
Support endpoints with s other than ruma_client_api::Error 2020-04-20 13:21:10 +02:00
Jonas Platte
1b1f8b6341
Update dependencies 2020-04-19 20:19:38 +02:00
Andreas Studer
7bb0c8a8c5 Move user_id and device_id into Identification
Not all callers will need the identification information.
2020-04-19 16:56:55 +02:00
Andreas Studer
d0c777ff9a Add request_with_url_params method
This method allows a client to add any URL parameters when doing an API call. This can be used by application services to add URL parameters like user_id.
2020-04-19 16:56:55 +02:00
Jonas Platte
a207807f59
Add timeout parameter to sync, update doctest 2020-04-14 19:50:17 +02:00
Jonas Platte
b974182c72
Fix doctest 2020-04-06 19:48:26 +02:00
Jonas Platte
201ff8c185
Update dependencies 2020-04-06 11:38:46 +02:00
Jonas Platte
1d689b2d7f
Remove deprecated keep_alive call
It doesn't need to be replaced, as the behavior we specified explititly
is the default
2020-03-10 12:04:39 +01:00
Jonas Platte
62afce2fd3
Fix doctest 2020-02-09 22:10:03 +01:00
Jonas Platte
4aef331886
Remove unused import 2020-02-09 22:03:57 +01:00
Jonas Platte
b412c58436
Update dependencies, rewrite error module 2020-02-09 21:48:11 +01:00
Jonas Platte
fde5338d50
Move fn session from impl HttpClient to impl Client 2020-02-07 19:12:04 +01:00
Jonas Platte
aee5693fd8
Use stream::try_unfold from futures 0.3.2 2020-02-04 19:20:43 +01:00
Jonas Platte
e4cf0fbf1e
Clean up lib.rs 2020-02-04 11:38:07 +01:00
Jonas Platte
8dfe42e846
Fix client impl bounds 2019-12-16 21:56:05 +01:00
Jonas Platte
19219dea6b
Update dependencies 2019-12-16 21:11:31 +01:00
Dimitris Apostolou
4a221a3bfb
Fix typos 2019-12-15 22:41:42 +02:00
Jonas Platte
c0390aba0d
Remove useless Result, native_tls dependency 2019-12-13 00:00:09 +01:00
Jonas Platte
5e2f965058
Fix doctests 2019-12-12 23:59:48 +01:00
Jonas Platte
7208e66dff
Update dependencies, release 0.3.0-beta.2 2019-12-12 21:18:40 +01:00
Jonas Platte
fcd1b204eb
Update dependencies 2019-12-03 21:40:37 +01:00
Jonas Platte
c957998455
Add #![warn(rust_2018_idioms)], fix warning 2019-11-12 01:20:20 +01:00
Jonas Platte
82f652abb4
Remove #![feature(impl_trait_in_bindings)] from doc test 2019-11-07 19:31:40 +01:00
Jonas Platte
3cbc3f04bd
Remove #![feature(async_await)] from doc tests 2019-11-07 19:01:28 +01:00
Jonas Platte
a43ba86836 Add some backticks in doc comments 2019-11-02 14:31:12 +01:00
Jonas Platte
ca3d77e620 Fix warnings 2019-10-31 22:37:27 +01:00
Jonas Platte
b8f5194bd3 Remove #![deny(warnings)], #![warn(clippy::…)] 2019-10-31 22:36:41 +01:00
Jonas Platte
721dc6f413 Update dependencies 2019-09-07 11:59:00 +02:00
Jonas Platte
098c1d767c Update doc-tests 2019-08-04 16:50:25 +02:00
Jonas Platte
a71b286dcd Re-export ruma_client_api from ruma_client 2019-08-04 16:50:25 +02:00
Jonas Platte
cfaabe9486 Use endpoint_is_request branch for ruma-[client-]api 2019-08-04 16:50:25 +02:00
Jonas Platte
5543edb7b9 Export ruma_events, ruma_identifers 2019-08-04 16:50:25 +02:00
Jonas Platte
d9a88cb63f Improve return type of sync 2019-08-04 16:50:25 +02:00
Jonas Platte
bbeb437635 Export type aliases HttpClient and HttpsClient 2019-08-04 16:50:25 +02:00
Jonas Platte
ef380003ff Update to std::future::Futures, feature(async_await) 2019-08-04 16:50:25 +02:00
Jimmy Cuadra
8699dc7708 Revise the error type to hide lower-level errors. 2019-06-02 10:47:10 -07:00
Jimmy Cuadra
5eac184768 Add crate documentation. 2019-06-02 10:31:35 -07:00
Jimmy Cuadra
15dd1b5b54 Add a session accessor to the client. 2019-06-02 10:31:14 -07:00
Jimmy Cuadra
71e1df7063 Add clippy lints. 2019-06-02 09:40:00 -07:00
Jimmy Cuadra
97b42c9d10 Run rustfmt. 2019-06-02 09:32:06 -07:00
Jimmy Cuadra
815c54f2b9 Make ClientData private. 2019-06-02 09:30:50 -07:00
Jimmy Cuadra
982b855d91 Remove try_from feature. 2019-04-11 18:33:53 -07:00
Jimmy Cuadra
fa798d7a04 Make Session fields public. 2019-02-08 13:43:15 -08:00
Jörg Sommer
7cf5ac80c8 Make ruma client thread safe
The new tokio engine requires a client that is safe to be send between
threads. It's simply done by converting Rc to Arc and RefCell to Mutex.
2019-01-22 10:36:04 +01:00
Nathan Musoke
eb92b86ce4 Store device_id in session
The device_id is needed by the client, but otherwise inaccessible (unless
provided to the server by the client).
This is analogous to how the user_id is currently stored for guests, but
will probably be more often used.  The device_id is needed to implement e2e
encryption.
2019-01-15 16:14:20 +01:00
Jonas Platte
28d7db40ed Update to Rust 2018 2019-01-08 19:55:28 +01:00
Jonas Platte
c3ccf51b02 Use nested imports 2018-12-22 12:10:47 +01:00
Jonas Platte
1ba4f66ba9 Run rustfmt 2018-12-22 12:05:25 +01:00
Jörg Sommer
a01702093e Make cargo-clippy happy 2018-08-31 17:48:09 +02:00
Jörg Sommer
04af2e41b4 Client.log_in: Add parameter device_id
This parameter was added to the request.

a7bce18b59
2018-08-31 17:47:52 +02:00