Jimmy Cuadra
bb8db260b5
Merge pull request #20 from ruma/readme-update
...
README.md: Add Status, Contributing sections
2019-04-18 16:56:10 -07:00
Jonas Platte
e1f5e4643b
README.md: Add Status, Contributing sections
2019-04-19 00:54:18 +02:00
Jimmy Cuadra
cd09349174
Bump version to 0.2.0.
2019-04-11 22:23:46 -07:00
Jimmy Cuadra
a66830de7a
Add joined rooms membership endpoint.
2019-04-11 22:23:37 -07:00
Jimmy Cuadra
982b855d91
Remove try_from feature.
2019-04-11 18:33:53 -07:00
Jimmy Cuadra
d6c3be4566
Update dependencies.
2019-04-11 18:31:22 -07:00
Jimmy Cuadra
913c25e5b8
Add note about minimum Rust version.
2019-04-11 17:30:22 -07:00
Jimmy Cuadra
fa798d7a04
Make Session fields public.
2019-02-08 13:43:15 -08:00
Jonas Platte
c50f043c51
Merge pull request #16 from jo-so/master
...
Update ruma client to new Tokio engine, make it thread safe
2019-01-22 18:36:14 +01:00
Jörg Sommer
e0f20ba0d0
Use tokio for hello_world example
...
The crate tokio-core is deprecated.
2019-01-22 10:38:31 +01: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
Jonas Platte
e9c4cad418
Merge pull request #15 from florianjacob/session-device_id
...
Rebase: Expose device_id through session
2019-01-15 16:34:08 +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
Jimmy Cuadra
c8bc590cba
Merge pull request #14 from ruma/rust-2018
...
Update to Rust 2018
2019-01-09 14:52:07 -08:00
Jonas Platte
28d7db40ed
Update to Rust 2018
2019-01-08 19:55:28 +01:00
Jimmy Cuadra
f3e82e8c90
Merge pull request #13 from ruma/nested-imports
...
Use nested imports
2019-01-07 14:36:38 -08: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
Jimmy Cuadra
dc6f35b143
Update dependencies and remove futures-await example.
2018-12-03 22:13:55 -08:00
Jörg Sommer
a01702093e
Make cargo-clippy happy
2018-08-31 17:48:09 +02:00
Jörg Sommer
5fb288fc66
Cleanup the examples a little bit
...
They run fine without this code.
2018-08-31 17:47:52 +02:00
Jörg Sommer
a0ce0a9da8
Update examples
2018-08-31 17:47:52 +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
Jörg Sommer
66037a9339
Update of hyper
...
* hyper::UriError was moved to http::InvalidUri
* tokio_core::reactor::Handle is no longer used by the new hyper version;
tokio_core can get dropped completely
2018-08-31 17:47:49 +02:00
Jimmy Cuadra
799d8e8d77
Merge pull request #10 from florianjacob/update_feature_flags
...
remove conservative_impl_trait feature flag
2018-05-19 00:11:05 -07:00
Florian Jacob
bb96b002d8
[feature(conservative_impl_trait)] is stable since rust 1.26
2018-05-17 17:37:58 +02:00
Jimmy Cuadra
6fec2ba9ec
Merge pull request #7 from jplatte/master
...
Erase lifetimes from client member functions, add examples
2017-10-19 15:33:07 -07:00
Jonas Platte
5df3d4888d
Turn homeserver url and room into command line params for hello_world examples
2017-10-19 23:43:45 +02:00
Jonas Platte
76d0780f5a
Remove aliases for Core and Handle from tokio_core
2017-10-19 23:29:06 +02:00
Jonas Platte
4eb8e65248
Return a copy of the session object from log_in, register_*
2017-10-19 23:24:46 +02:00
Jonas Platte
71605f0113
Add examples/hello_world_await.rs
2017-10-19 23:24:46 +02:00
Jonas Platte
02bbfd8664
Remove unused dependency
2017-10-19 23:24:46 +02:00
Jonas Platte
92728e53e8
Add Client::sync()
2017-10-19 23:24:46 +02:00
Jonas Platte
afa4467448
Remove unused extern crate in hello_world example
2017-10-19 23:24:46 +02:00
Jonas Platte
ef119f71e8
Apply small change suggested by clippy
2017-10-19 23:24:46 +02:00
Jonas Platte
8759d5c864
Refactor Client: use one Rc instead of three
2017-10-19 23:24:46 +02:00
Jonas Platte
002745fb2f
Remove a few unnecessary clones in hello_worl example
2017-10-19 23:24:46 +02:00
Jonas Platte
3dae62ec25
Remove Client lifetime from Futures by using Rc and clones
2017-10-19 23:24:46 +02:00
Jonas Platte
ceca663d69
Implement Client::register_user
2017-10-19 23:24:46 +02:00
Jonas Platte
fcd6985618
Add more detailed documentation for Client::log_in
2017-10-19 23:24:46 +02:00
Jonas Platte
61d848d2b5
Add hello_world example
2017-07-12 01:25:43 +10:00
Jonas Platte
e734de5d44
Implement Client::register_guest
2017-07-12 01:25:31 +10:00
Jimmy Cuadra
39bd63d576
Add Client::log_in
.
2017-07-09 02:09:41 -07:00
Jimmy Cuadra
6d1c167efb
Simplify Session
and authenticate requests when required.
2017-07-08 23:43:15 -07:00
Jimmy Cuadra
feaadff8db
Pass local imports to the more explicit version of the endpoint macro.
2017-07-08 22:41:11 -07:00
Jimmy Cuadra
d25b972277
Expose all endpoints from ruma-client-api.
2017-07-08 18:23:44 -07:00
Jimmy Cuadra
e509f80cdf
Use a reference to convert Url into Uri.
...
See: https://github.com/hyperium/hyper/issues/1089#issuecomment-288842526
2017-07-07 23:49:43 -07:00
Jimmy Cuadra
da5ce8ee11
Set the path and query string before making a request.
2017-07-07 23:36:05 -07:00
Jimmy Cuadra
3b059d1735
Run rustfmt.
2017-07-07 23:24:37 -07:00
Jimmy Cuadra
60e4d9a86c
Add an API module to expose endpoints.
2017-07-07 23:20:42 -07:00