Commit Graph

57 Commits (436530e8740066420d33f74b0c6c1d0e1e53dd0b)

Author SHA1 Message Date
Damir Jelić 4c6c1d2107 matrix-sdk: Get rid of the common macros crate
This crate was used to support different trait bounds on WASM vs other
targets, since we only define async traits in a couple of places having
a whole crate to support this feels a bit excessive.

This patch defines a target specific super trait instead, this lowers
the compile time a couple of seconds.
2021-01-04 16:34:14 +01:00
Damir Jelić c4ed5b6cda matrix-sdk: Upgrade our deps. 2020-08-11 16:54:58 +02:00
Damir Jelić cd5d5da06a matrix-sdk: Use the upstream git repo for olm-rs. 2020-08-10 13:43:18 +02:00
Damir Jelić 7c92d91c04 crypto: Use a patched olm-rs for now. 2020-07-22 11:39:30 +02:00
Damir Jelić 8a7c53c00d matrix-sdk: Remove the wrongly committed olm-sys/olm-rs patch defintions. 2020-07-11 22:18:01 +02:00
Damir Jelić 9bceb2f539 crypto: Add the user id and device id to the account. 2020-07-11 17:23:50 +02:00
Marcel 8b77b4171a Do wasm sepcific changes:
- Only use send+sync when not using wasm
- Use wasm capabale async_trait wrapper macro
- Make room and room_member specific structs always clonable
2020-06-17 18:57:39 +02:00
stoically aa42951f15 matrix-sdk: Switch to upstream crates 2020-05-12 17:32:01 +02:00
stoically ef6104bc53 matrix-sdk: Support compiling to wasm32-unknown-unknown 2020-05-12 15:48:09 +02:00
Damir Jelić 207fac2b49 matrix-sdk: Move the EventBuilder into a separate crate so it can be reused. 2020-05-08 09:49:55 +02:00
Damir Jelić 30f8ccd2de matrix-sdk: Move the bulk of the sdk into a separate base crate. 2020-05-07 14:58:38 +02:00
Damir Jelić 6cbdbdcd2f matrix-sdk: Rename the types subproject to matrix-sdk-common. 2020-05-07 08:51:59 +02:00
Damir Jelić 5fef444d61 matrix-sdk: Split out the crypto part of the sdk into a separate crate. 2020-04-29 09:48:00 +02:00
Damir Jelić d220c6cb29 crypto: Test the megolm encyrption. 2020-04-28 14:48:49 +02:00
Jonas Platte 5cfac42101
Upgrade js_int to 0.1.5 2020-04-27 12:12:45 +02:00
Damir Jelić 1de791c207 rust-sdk: Update to the latest ruma releases. 2020-04-23 10:52:47 +02:00
Damir Jelić 6b33bedcbe Cargo.toml: Use the released version of olm-rs. 2020-04-21 09:54:41 +02:00
Devin R 07b7cbfe4e async_client: name associated error type in AsyncClient::send 2020-04-16 16:39:44 -04:00
Damir Jelić cb8f1c1a5b crypto: Zeroize the GroupSessionKey struct. 2020-04-10 17:02:51 +02:00
Damir Jelić 58585b9828 Cargo.toml: Depend on the git hosted ruma crates. 2020-04-09 17:04:34 +02:00
Damir Jelić 2c7115da84 async_client: Use a UUID for the transaction id. 2020-04-09 16:19:32 +02:00
Devin R 834d8d7d37 remove serde from dev-deps, add crypto info to design 2020-04-08 07:13:43 -04:00
Devin R 2137d198fc remove internal assertions in favor of returning clients and rooms 2020-04-07 16:11:35 -04:00
Devin R 78f92130fa add individual events for tests, working TestRunner 2020-04-06 15:29:38 -04:00
Devin R 854948fc6d generic add event 2020-04-06 09:11:38 -04:00
Damir Jelić 514afbbc1b README: Fix the license name. 2020-04-03 14:51:51 +02:00
Damir Jelić 74f1a21e42 rust-sdk: Updates for the new ruma crate versions. 2020-04-03 14:09:56 +02:00
Damir Jelić aa7bedbefd Merge branch 'ev-emitter' 2020-04-03 10:14:40 +02:00
Damir Jelić 913cc374d0 crypto: Calculate the deleted devices in a key query. 2020-04-02 14:52:15 +02:00
Devin R 5612825762 add EventEmitter trait, clean up imports so new warnings are easier to see 2020-04-01 16:35:50 -04:00
Damir Jelić b5b4542cd5 Cargo.toml: Switch to a release of sqlx. 2020-03-31 16:17:37 +02:00
Damir Jelić 2e195610b3 Cargo.toml: Bump our deps. 2020-03-28 12:30:48 +01:00
Damir Jelić cc7e6c6ed3 Cargo.toml: Depend on olm_rs/ruma-events from github. 2020-03-28 11:50:20 +01:00
Damir Jelić 50167e7988 Cargo.toml: Set the correct license. 2020-03-26 10:04:08 +01:00
Damir Jelić c72a5defee rust-sdk: Changes for the new ruma-api version. 2020-03-24 16:18:56 +01:00
Damir Jelić 9c467d40e0 Cargo.toml: Switch to olm-rs on gitlab. 2020-03-21 16:50:54 +01:00
Damir Jelić 1b8b3da733 rust-sdk: Add initial tracing/logging setup. 2020-03-19 13:55:04 +01:00
Damir Jelić 5db9eadd89 Cargo.toml: Clean up our dependencies. 2020-03-18 10:56:26 +01:00
Damir Jelić 7a11a57b41 crypto: Add initial crypto store. 2020-03-18 09:41:49 +01:00
Damir Jelić 708a8b1b06 Cargo.toml: Use tokio's delay_for instead of async-std's sleep. 2020-03-16 13:31:03 +01:00
Damir Jelić bd53e18aa9 Cargo.toml: Use the tokio async test macro. 2020-03-16 13:24:54 +01:00
Damir Jelić 2d8165c113 Cargo.toml: Fix the olm-rs dependency. 2020-03-14 12:22:36 +01:00
Damir Jelić 7f7c0657f9 Cargo.toml: Update the ruma deps. 2020-03-14 10:28:46 +01:00
Damir Jelić bc4416e7cd async_client: Add a method to upload encryption keys. 2020-03-11 11:42:59 +01:00
Damir Jelić c41d3873b6 rust-sdk: Cleanup the docs and fix the examples up. 2020-03-02 11:31:03 +01:00
Damir Jelić b171f64f1d crypto: Use the serde feature of olm-rs. 2020-02-26 09:18:53 +01:00
Damir Jelić 45890a27f3 crypto: Add support for device keys signing. 2020-02-25 17:36:11 +01:00
Damir Jelić 15d8de56e1 crypto: Add an initial version of the olm state machine. 2020-02-25 14:24:18 +01:00
Damir Jelić d3903811c6 rust-sdk: Add initial crytpto code. 2020-02-24 17:19:00 +01:00
Damir Jelić d2141624d0 Cargo.toml: Rename the crate. 2020-02-21 17:01:34 +01:00