2233 Commits

Author SHA1 Message Date
Jonas Platte
f761a8f837 Fix trait imports in generated code without rename
Previously, the generated code would fail to compile when the 'derive' feature
on the serde crate was enabled
2019-01-30 22:50:11 +01:00
Florian Jacob
14fbaf698f joined_rooms: new API call
that was added in r0.3.0
2019-01-23 20:22:05 +01:00
Alejandro Domínguez
d48fc54c96 Use folders instead of mods 2019-01-22 18:41:41 +01: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
Jimmy Cuadra
9d5449b219
Merge pull request #23 from ruma/rust-2018
Update to Rust 2018
2019-01-16 08:02:50 -08:00
Jonas Platte
1b2cd339cb Update to Rust 2018 2019-01-16 00:13:10 +01:00
Jonas Platte
6f093f70ed Use nested imports, misc. import changes
* Bring imports into a consistent order (std, crates, internal)
* Replace super::super-imports by crate-relative ones
2019-01-16 00:13:10 +01:00
Jimmy Cuadra
33e113f5e5
Merge pull request #6 from ruma/rust-2018
Update doc tests to Rust 2018, remove unnecessary main declaration from them
2019-01-15 12:36:03 -08:00
Jimmy Cuadra
b6401a1232
Merge pull request #16 from ruma/rust-2018
Update to Rust 2018
2019-01-15 12:33:28 -08:00
Jimmy Cuadra
cba85ba9c5
Merge pull request #13 from ruma/rust-2018
Update to Rust 2018
2019-01-15 12:33:10 -08:00
Jimmy Cuadra
c78faf0bf3
Merge pull request #31 from ruma/rust-2018
Update to Rust 2018
2019-01-15 12:32:48 -08: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
Jonas Platte
163a555a17 Update doc tests to Rust 2018, remove unnecessary main declaration from them 2019-01-13 22:30:12 +01:00
Jonas Platte
282b952192 Update to Rust 2018 2019-01-13 21:42:45 +01:00
Jonas Platte
d3322bec11 Update to Rust 2018 2019-01-13 21:41:27 +01:00
Jonas Platte
bc968c8e14 Update to Rust 2018 2019-01-13 21:22:37 +01:00
Jonas Platte
f95b4b05bb Use nested imports 2019-01-13 21:13:18 +01:00
Jonas Platte
586bca680d Re-run 'cargo fmt' 2019-01-13 21:12:33 +01:00
Jimmy Cuadra
025e981b96
Merge pull request #15 from ruma/nested-imports
Use nested imports
2019-01-09 14:53:32 -08:00
Jimmy Cuadra
578c3f38ab
Merge pull request #12 from ruma/nested-imports
Use nested imports, update formatting
2019-01-09 14:52:59 -08:00
Jimmy Cuadra
d23813efb1
Merge pull request #5 from ruma/nested-imports
Use nested imports
2019-01-09 14:52:29 -08:00
Jimmy Cuadra
c8bc590cba
Merge pull request #14 from ruma/rust-2018
Update to Rust 2018
2019-01-09 14:52:07 -08:00
Jimmy Cuadra
dbbc8be729
Merge pull request #6 from ruma/nested-imports
Use nested imports
2019-01-09 14:51:36 -08:00
Jimmy Cuadra
179a06040d
Merge pull request #22 from ruma/stripped-add-sender
StrippedStateContent: Add sender field
2019-01-09 14:51:05 -08:00
Jonas Platte
9d1e8180b8 Configure rustfmt for nested imports, re-run 'cargo fmt' 2019-01-08 20:17:28 +01:00
Jonas Platte
0b3dd48c3e Configure rustfmt for nested imports, re-run 'cargo fmt' 2019-01-08 20:06:19 +01:00
Jonas Platte
61e1ebb4cb Configure rustfmt for nested imports, re-run 'cargo fmt' 2019-01-08 20:01:29 +01:00
Jonas Platte
28d7db40ed Update to Rust 2018 2019-01-08 19:55:28 +01:00
Jonas Platte
05f7e6b0a8 Configure rustfmt for nested imports, re-run 'cargo fmt' 2019-01-08 19:53:25 +01:00
Jonas Platte
af5a8932e3 StrippedStateContent: Add sender field 2019-01-08 19:37:55 +01:00
Victor Berger
7a7697e9e2 InviteState in Sync response is stripped events 2019-01-08 18:34:40 +01:00
Victor Berger
e9fc9b03fd Make room_id optional
This field can be absent in some contextes, notably in the responses
to the /sync endpoint, where the events are summarised in the initial
sync of a client.

Fixes #19
2019-01-08 18:27:33 +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
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