5234 Commits

Author SHA1 Message Date
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
Jimmy Cuadra
b0199a0489 Merge pull request #23 from musoke/master
associated_consts stabilized
2017-10-17 06:42:06 -07:00
Nathan Musoke
60d0428730 associated_consts stabilized
Since rust 1.20
2017-10-17 23:52:05 +13:00
Jimmy Cuadra
72e6dc7ad7 Merge pull request #22 from tilpner/master
Pass sync endpoint parameters according to spec
2017-09-29 00:16:54 -07:00
tilpner
478106fd42
Serialize sync_events::Filter untagged
This is to make Filter::FilterId(String::from("0")) serialize
as "0", instead of to a JSON object that cannot be passed
as a query paramater
2017-09-28 20:34:43 +02:00
tilpner
15bd7d2641
Pass sync request as query parameters instead of data
Before, it would silently ignore them for defaults,
so long-polling was not possible because no timeout
was passed
2017-09-28 20:34:29 +02:00
Jimmy Cuadra
8970e3d83d Bump version to 0.5.0. 2017-09-08 17:33:18 -07: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
7d919bcee5 Merge pull request #21 from jplatte/master
Fix two types in the sync response "tree"
2017-08-04 03:56:00 -07:00
Jimmy Cuadra
a51448e09d Merge pull request #15 from jplatte/master
More bytesize fixes
2017-08-04 03:55:23 -07:00
Jonas Platte
b741ec3028 Use more descriptive names for properties with one-character-names in the spec 2017-08-04 10:35:56 +02:00
Jonas Platte
fcd2a50f4f UnreadNotificationsCount: Make fields optional 2017-08-03 22:42:08 +02:00
Jonas Platte
b852b15134 Fix grammar in doc comments 2017-08-03 22:16:52 +02:00
Jonas Platte
4a91932ea8 Fix a bunch more deserialization bugs 2017-08-03 22:16:52 +02: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
eca6d97690 Merge pull request #14 from jplatte/master
Fix two bytesize bugs (wrong json key, non-optional value that should be optional)
2017-08-01 10:00:05 -07:00
Jonas Platte
5a1ae50eaa Fix wrong json key in receipt event 2017-08-01 18:37:22 +02:00
Jonas Platte
46fa6d21a2 Fix timeline.events type in sync_events response 2017-07-17 18:57:22 +02:00
Jonas Platte
491188db2b Make PresenceEventContent::currently_active optional 2017-07-12 18:28:26 +10: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
Jimmy Cuadra
86e837d26f Update dependencies, use published ruma crates, add new Client constructors. 2017-07-07 23:19:12 -07:00
Jimmy Cuadra
3cbbf10587 Use ruma-api 0.4.0 and ruma-api-macros 0.1.0. 2017-07-07 01:31:15 -07:00
Jimmy Cuadra
d3265f3251 Use ruma-api 0.4.0 and add missing crate metadata. 2017-07-07 01:26:51 -07:00
Jimmy Cuadra
37a5991fda Bump version to 0.4.0. 2017-07-07 01:19:03 -07:00
Jimmy Cuadra
863fe814ef Use ruma-api-macros for the voip endpoints. 2017-07-07 01:08:03 -07:00
Jimmy Cuadra
0d9d1f8119 Use ruma-api-macros for the typing endpoints. 2017-07-07 01:02:03 -07:00