Jonas Platte
fa8a45ed9f
Update changelog, bump version
2020-05-22 17:59:30 +02:00
Jonas Platte
5ad4fd11c9
Improve Display implementation for Error
2020-05-22 17:58:31 +02:00
Jonas Platte
326e705468
Fix hello_world example
2020-05-22 17:58:25 +02:00
Guillem Nieto
866885bb38
Update changelog
2020-05-22 16:29:27 +02:00
Guillem Nieto
fe80737c58
Change Device fields according to the spec
...
Fields `ip` and `last_seen` should be named `last_seen_ip` and
`last_seen_ts` according to the spec.
https://matrix.org/docs/spec/client_server/r0.6.0#get-matrix-client-r0-devices
2020-05-22 16:29:27 +02:00
Guillem Nieto
195bff8c05
Fix build
...
- Add required documentation to `devices` field
- Import `UserId` on `sync_events`
2020-05-22 15:12:49 +02:00
Jonas Platte
b5fa684dfc
Update sync_events::DeviceLists field types
2020-05-21 23:36:07 +02:00
Jonas Platte
6d93ec1d1a
Fix accidentally-private field
2020-05-21 23:29:56 +02:00
Jonas Platte
b5f436d511
Expand explanation comment for unsafe code
2020-05-19 22:22:44 +02:00
Jonas Platte
af0a304594
Fix building on 1.36.0
2020-05-19 22:22:19 +02:00
Timo Kösters
3a3ccabbf2
Fix get_content_thumbnail response
2020-05-19 18:45:38 +02:00
Jonas Platte
a42b335bfe
Update dependencies
2020-05-19 12:37:03 +02:00
Jonas Platte
88ca0cf4f8
Bump dependencies, version
2020-05-19 12:33:36 +02:00
Jonas Platte
d6cfbaa47d
Bump dependencies, versions
2020-05-19 12:27:57 +02:00
Jonas Platte
e05b30d008
Query string deserialization: Allow multiple values for one key
2020-05-18 01:10:05 +02:00
Jonas Platte
0e627a8ac1
Update url_deserialize tests
2020-05-17 22:02:32 +02:00
Jonas Platte
89dcb5710b
Add another test for sync_events request deserialization
2020-05-17 18:54:35 +02:00
Jonas Platte
519ab3ff0a
Implement Display for r0::keys::AlgorithmAndDeviceId
2020-05-17 18:53:22 +02:00
Jonas Platte
48c5fb1a73
Update deps, bump version to 0.2.1
2020-05-15 11:51:11 +02:00
Jonas Platte
17783661da
Rename nested struct serialization tests
2020-05-15 11:50:01 +02:00
Jonas Platte
338ef529e1
Forbid serializing nested lists
2020-05-15 11:49:48 +02:00
Jonas Platte
73a46d6b21
Revert 'impl Sink for &mut ValueSink
instead of for ValueSink
'
...
This reverts commit 2032fc2, which was never actually necessary
2020-05-15 11:45:16 +02:00
Jonas Platte
7aa27c2a2d
More serialization test updates
2020-05-15 00:56:05 +02:00
Jonas Platte
9092f7d6d8
Update serialization tests
2020-05-14 23:12:12 +02:00
Jonas Platte
0c775de766
Add serialization support for sequences
...
Sequences of values for one key are serialized as `key=value1&key=value2`
2020-05-14 22:16:24 +02:00
Jonas Platte
2032fc2a94
impl Sink for &mut ValueSink
instead of for ValueSink
...
preparation for one-key-many-value serialization
2020-05-14 22:11:25 +02:00
Jonas Platte
e55527fee6
Merge, re-group imports in urlencoded
2020-05-14 22:08:55 +02:00
Jonas Platte
4d702558bb
Update deps, bump versions
2020-05-14 13:07:14 +02:00
Jonas Platte
981a3aebe2
Bump version again
...
to 0.2.0 this time, since the revert to plain serde_urlencoded logic was actually a breaking change
2020-05-13 23:00:01 +02:00
Jonas Platte
a9579a4729
Bump version
2020-05-13 21:42:16 +02:00
Jonas Platte
01562cb7ac
Revert urlencoded to plain serde_urlencoded logic temporarily
2020-05-13 21:38:42 +02:00
Jonas Platte
62bf717e62
Update sync_events tests
2020-05-10 12:09:43 +02:00
Jonas Platte
206a824f3e
Add EventJson::into_json
2020-05-09 15:42:31 +02:00
Jonas Platte
890cf13973
Bump MSRV (due to bytes dependency)
2020-05-07 20:36:57 +02:00
Jonas Platte
74d1b833cd
Add change log
2020-05-07 20:31:59 +02:00
Jonas Platte
8770e914f6
Update dependencies
2020-05-07 20:30:47 +02:00
Jonas Platte
a742ef47df
Use BTreeMap instead of HashMap
2020-05-07 20:30:26 +02:00
Jonas Platte
c28645b945
Update change log
2020-05-07 14:43:29 +02:00
Jonas Platte
7a22bc7a45
Add comments to explain required event_id fields
2020-05-07 14:42:30 +02:00
Damir Jelić
e36e9a68ac
message/state: The event id is required in the response when sending events.
2020-05-06 09:57:13 +02:00
Jonas Platte
ecb498be67
Bump version
2020-05-05 23:10:58 +02:00
Jonas Platte
55df111a97
Canonicalize spec links
2020-05-05 23:10:29 +02:00
Jonas Platte
2bb96b5a2b
Use serde_json::value::RawValue instead of serde_json::Value in most endpoints
2020-05-05 22:51:46 +02:00
Jonas Platte
b10e5e9ed1
Add get_media_preview module declaration
2020-05-05 22:51:16 +02:00
Damir Jelić
7d80a7f23d
sync_events: Make all fields in the response optional except next_batch.
...
As per spec only the next_batch token is required in a sync response.
This patch makes all of them optional and creates default values when
parsing a response. Serialization is skipped for all of them if they are
empty containers.
2020-05-05 15:31:24 +02:00
Damir Jelić
5cedf1a963
keys: Make the device display name optional.
2020-05-05 15:31:24 +02:00
poljar
56f2054df5
to_device: Use a RawValue for sending to-device messages
2020-05-05 11:55:41 +02:00
Jonas Platte
fc626d0869
Whitespace and comment wrapping adjustments
2020-05-05 00:41:51 +02:00
Jonas Platte
3db0abe4cc
Update change log
2020-05-05 00:16:48 +02:00
Jonas Platte
ae8a629823
Remove dependency on the url crate
2020-05-05 00:16:43 +02:00