1729 Commits

Author SHA1 Message Date
Jimmy Cuadra
d384c1175e
Merge pull request #25 from florianjacob/room-filter-typo
RoomFilter: fix typo
2018-05-17 21:25:11 -07:00
Florian Jacob
ca99939ca6 /rooms/{room_id}/members requires authentication
it was just an omission from the spec.
See https://github.com/matrix-org/matrix-doc/pull/1244
2018-05-17 19:08:21 +02:00
Florian Jacob
000b4af1b2 RoomFilter: fix typo
nevertheless a breaking change
2018-05-17 17:48:09 +02:00
bors[bot]
3ae5332931 Merge #32
32: Bump version to 0.5.2 r=nox a=nox



Co-authored-by: Anthony Ramine <n.oxyde@gmail.com>
2018-05-16 10:19:15 +00:00
Jimmy Cuadra
29f2d2fd7f Bump version to 0.2.0. 2018-05-16 01:48:15 -07:00
Jimmy Cuadra
ef32a2f9c1 Convert between HeaderValue and the declared type. 2018-05-16 01:43:17 -07:00
Jimmy Cuadra
e3cf7a38a1 Remove code for building full bodies from streams. 2018-05-16 01:21:59 -07:00
Jimmy Cuadra
a27adc2f73 Use Vec<u8> for request and response bodies. Use http's API for creating requests and responses. 2018-05-16 01:11:37 -07:00
Jimmy Cuadra
c9454caff1 Update request/response header logic for new style. 2018-05-16 00:40:51 -07:00
Jimmy Cuadra
f0f4f9bd17 Detect header attributes as name/value pairs. 2018-05-15 22:57:06 -07:00
Anthony Ramine
147bc9d93f Bump version to 0.5.2 2018-05-15 22:19:04 +02:00
bors[bot]
f1499760e3 Merge #31
31: Bump itoa dep to 0.4.0 r=nox a=alex



Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
2018-05-15 19:58:04 +00:00
Jimmy Cuadra
a035c233be Remove remaining references to hyper and use new header style in docs. 2018-05-15 01:49:42 -07:00
Jimmy Cuadra
7b1e22eea4 Rewrite Api's ToTokens impl to avoid calls to append_all with string literals. 2018-05-15 01:32:38 -07:00
Jimmy Cuadra
5bc253b324 Rewrite request and response ToTokens to avoid calls to append_all with string literals. 2018-05-15 01:32:38 -07:00
Jimmy Cuadra
f6b6c94675 Preserve span information for fields. 2018-05-13 00:23:57 -07:00
Jimmy Cuadra
c86cdb29b3 Fix another bug and use a more useful variable name for named path segments. 2018-05-13 00:09:39 -07:00
Jimmy Cuadra
38746660b6 Use a custom parser for the raw input. 2018-05-12 23:56:23 -07:00
Jimmy Cuadra
8f6bc5af77 Fix remaining compiler errors. 2018-05-11 08:50:39 -07:00
Jimmy Cuadra
09e377d68e Extract relevant types out of the metadata's fields. 2018-05-04 20:13:34 -07:00
Jimmy Cuadra
dfaf1c7da1 Rearrange some code. 2018-05-04 19:39:48 -07:00
Jimmy Cuadra
5e9a3be5d4 Simplify code with ToTokens::into_tokens. 2018-05-04 19:31:42 -07:00
Jimmy Cuadra
2a84e038c4 Remove parse module. 2018-05-04 18:53:03 -07:00
Jimmy Cuadra
4c46df9a59 Update strip_serde_attrs, uncomment code. 2018-05-04 18:50:22 -07:00
Jimmy Cuadra
ab106f75ac ExprStruct --> Response 2018-05-04 18:46:48 -07:00
Jimmy Cuadra
a1929e38cf ExprStruct --> Request 2018-05-04 17:32:12 -07:00
Jimmy Cuadra
ba6eef9c76 Switch TryFrom back to From since proc macros must panic on errors. 2018-05-04 17:07:35 -07:00
Jimmy Cuadra
4db09dac8d ExprStruct --> Metadata 2018-05-04 03:52:55 -07:00
Jimmy Cuadra
17b11d1a25 WIP 2018-05-04 03:33:08 -07:00
Jimmy Cuadra
76fb657300
Merge pull request #2 from digitalatigid/digital-unit-tests-roomalias
Add unicode compatibility for identifiers
2018-04-05 01:31:44 -07:00
Digital
3a4041982c Add unicode compatibility for identifiers
Fix issue with unicode character boundaries in parse_id.
Add Unit test for unicode room aliases.
2018-04-04 14:31:16 +02:00
Alex Gaynor
b4804ad95a
Bump itoa dep to 0.4.0 2018-03-19 09:53:30 -04:00
Nathan Musoke
acac994a18 r0.3.0/login: Add device_id to request & response
Version 0.3.0 of the client-server spec adds a `device_id` field to the
login request and response.  It is optional in the request.
See https://matrix.org/docs/spec/client_server/r0.3.0.html#post-matrix-client-r0-login for details.

I don't think this will be backwards compatible with ruma-client.
2018-01-25 17:50:09 +13:00
Konstantinos Sideris
3a62aaf4c7 Add m.room.pinned_events 2017-11-27 17:08:51 +02:00
Konstantinos Sideris
0635fbae53 Add m.direct event 2017-11-16 11:22:08 +02:00
Konstantinos Sideris
a9490dbee8 Update matrix events to their latest version 2017-11-16 11:22:07 +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