Jimmy Cuadra
3e7f7a987b
Merge pull request #11 from ruma/less_append_all
...
Get rid of almost all calls to append_all
2018-12-16 11:22:31 -08:00
Jonas Platte
0a4239b678
Get rid of almost all calls to append_all
2018-12-15 21:22:07 +01:00
Jimmy Cuadra
6ff12a74d2
Run rustfmt and add it to CI runs.
2018-12-07 17:29:14 -08:00
Jimmy Cuadra
9f478a1d51
Use Rust 2018 edition idioms.
2018-12-07 17:20:59 -08:00
Jimmy Cuadra
df1fc1739b
Use edition 2018.
2018-12-07 17:16:47 -08:00
Jimmy Cuadra
dc6f35b143
Update dependencies and remove futures-await example.
2018-12-03 22:13:55 -08:00
Jimmy Cuadra
8bf2f2a024
Bump version to 0.2.0.
2018-12-03 20:35:33 -08:00
Jimmy Cuadra
c281dc662c
Update dependencies.
2018-12-03 20:33:48 -08:00
Jimmy Cuadra
6240c25160
Bump version to 0.11.0.
2018-12-03 20:29:08 -08:00
Jimmy Cuadra
c222c03fb1
Update dependencies.
2018-12-03 20:27:38 -08:00
Jimmy Cuadra
0696334186
Merge pull request #18 from florianjacob/fix-presence-events
...
Apply upcoming spec change to m.presence event representation,
2018-12-03 20:21:31 -08:00
Jimmy Cuadra
9693c10328
Merge remote-tracking branch 'Johni0702/small-fixes'
2018-12-03 19:12:13 -08:00
Jimmy Cuadra
e3883bfbed
Bump version to 0.4.1.
2018-12-03 18:56:08 -08:00
Jimmy Cuadra
0c299b6226
Update dependencies.
2018-12-03 18:50:58 -08:00
Jimmy Cuadra
f6b066b73f
Merge pull request #4 from fest-im/master
...
Update dependencies (and fix a trivial warning along the way)
2018-12-03 18:50:13 -08:00
Jimmy Cuadra
0e494ade66
Bump version to 0.3.0.
2018-12-03 18:28:16 -08:00
Jimmy Cuadra
1ac3236a9e
Merge remote-tracking branch 'fest-im/master'
2018-12-03 18:26:57 -08:00
Jimmy Cuadra
d90dfdee24
Merge remote-tracking branch 'Johni0702/cloneable'
2018-12-03 18:10:52 -08:00
Jimmy Cuadra
b72afdefae
Update dependencies.
2018-12-03 18:08:03 -08:00
Jimmy Cuadra
2f07b803a8
Update to ruma-api 0.6.0.
2018-12-03 18:06:14 -08:00
Jimmy Cuadra
033c04fd12
Bump version to 0.6.0.
2018-12-03 17:57:58 -08:00
Jimmy Cuadra
bfddf74398
Update dependencies.
2018-12-03 17:56:51 -08:00
bors[bot]
11cc5bb88f
Merge #45
...
45: Fix struct newtype deserialization (and add tests) r=nox a=samsieber
Fixes #41
I only had to fix the deserializer - the serialization already works. So now they work the same way - you can serialize something and then deserialize it losslessly.
I also added tests for serialization and deserialization. Let me know if there's anything you'd like changed.
Co-authored-by: Sam Sieber <swsieber@gmail.com>
2018-11-19 16:16:45 +00:00
Sam Sieber
8f829ac1b4
Bump version to 0.5.4
2018-11-19 09:12:33 -07:00
Sam Sieber
0ecc730e64
Fix struct newtype deserialization (and add tests)
2018-11-19 08:59:04 -07:00
Jonas Platte
c9277ddc94
Upgrade dependencies
2018-11-10 22:39:29 +01:00
Jonas Platte
1334fc37e5
Remove unused mut
2018-11-09 11:28:36 +01:00
Jonas Platte
bd23e42cfc
Update lazy_static, url, ring, untrusted
2018-11-09 11:28:05 +01:00
Jonas Platte
86135ddeb0
Update base64 to latest version
2018-11-09 11:20:56 +01:00
Jonas Herzig
20cbadd95b
Make Request and Response cloneable
2018-09-12 15:27:40 +02:00
Jonas Herzig
e4ec9442d8
Make the Future returned by generated future_from
s be Send
2018-09-12 13:23:33 +02:00
Jonas Herzig
e23eff151b
Add convertion to/from Request/Response from/to http::Request/Response
2018-09-12 13:00:28 +02: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
Jonas Herzig
eb6f2518ef
get_supported_versions does not require authentication
2018-09-11 14:13:58 +02:00
Jonas Herzig
ec8198964a
get_state_events_for_key::Request::event_type should be of type EventType
2018-09-11 14:14:09 +02:00
Jonas Herzig
07e079bb8d
get_subscribed_presences::Response::presence_events should be public
2018-09-11 14:13:58 +02:00
Florian Jacob
af3a14e3b4
Apply upcoming spec change to m.presence event representation,
...
making ruma-client more interoperable with synapse.
See https://github.com/matrix-org/matrix-doc/pull/1137 for the details
of the spec change.
Fixes https://github.com/ruma/ruma-client-api/issues/27
2018-09-01 12:22:30 +02: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
Jörg Sommer
58d06f82a2
Fix Rust's hint about proc_macro
...
The feature `proc_macro` has been stable since 1.29.0 and no longer
requires an attribute to enable
2018-08-31 14:09:45 +02:00
Jörg Sommer
7112b79859
Add hyper for new version of ruma-api
2018-08-31 14:09:38 +02:00
Jörg Sommer
116a6f44bc
Fix some hints from Rust and clippy
...
* the feature `proc_macro` has been stable since 1.29.0 and no longer
requires an attribute to enable
* https://rust-lang-nursery.github.io/rust-clippy/v0.0.212/index.html#needless_return
* https://rust-lang-nursery.github.io/rust-clippy/v0.0.212/index.html#len_zero
2018-08-31 13:47:29 +02:00
Jörg Sommer
c91b9137fb
Update dependent crates quote, syn and others
...
Cargo treats updates in the third position of the version number as
compatible and updates them silently. Therefore, we can drop this number
in the config.
`Tokens` was moved from *quote* to *proc_macro2* and got renamed to
`TokenStream`.
2018-08-31 13:47:27 +02:00
Jörg Sommer
8703e515a9
Replace Vec<u8> by hyper::Body
...
The `hyper::Request` and `Response` used in *ruma-client* require a type
parameter that implements `hyper::body::Payload`, but no implementation
for `Vec<u8>` is provided by a crate. Therefore, the best is to use
`hyper::Body` in the macros.
2018-08-31 13:46:28 +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