Fork of github.com/matrix-org/matrix-rust-sdk
 
 
Go to file
Denis Kasak 03e53e991b Hoist prev_content to top-level in both timeline and state events.
Also refactor and document why this hoisting is needed.

This change makes the user_presence test fail because the hoisting
exposes an error encoded into the test's expected result.

Previously, the test expected 2 members in the room at the end. This is
incorrect since one of the members in the test data leaves the room.
However, since the prev_content of state events was previously not
hoisted to the top level, the `membership_change` method would not
notice it and thus not realize the member had left the room. The test
was corrected to expect only a single member in the room.

Another test change was made due to a limitation of EventBuilder: due to
the fact that it makes the test data go through a de/ser cycle, it
cannot easily hoist prev_content to the top level. Because of this, the
tests were change to put prev_content into the top level from the
outset.
2020-06-15 17:21:26 +02:00
matrix_sdk Hoist prev_content to top-level in both timeline and state events. 2020-06-15 17:21:26 +02:00
matrix_sdk_base Hoist prev_content to top-level in both timeline and state events. 2020-06-15 17:21:26 +02:00
matrix_sdk_common common: Depend on the git version of futures-locks again. 2020-05-26 22:21:03 +02:00
matrix_sdk_crypto crypto: Simplify the max keys calculation for one-time key uploads. 2020-06-04 17:36:33 +02:00
matrix_sdk_test matrix-sdk: Vary sync token with each EventBuilder::build_sync_response call. 2020-06-09 15:20:21 +02:00
matrix_sdk_test_macros matrix-sdk: Add a bunch of readmes to the crates. 2020-05-26 19:33:13 +02:00
test_data add support for custom events and unrecognized by ruma events, test new code 2020-05-29 17:36:58 -04:00
.gitignore Fix the gitignore file. 2019-11-24 22:44:28 +01:00
.pre-commit-config.yaml nio-rust: Add a pre-commit config. 2019-11-10 18:33:27 +01:00
.travis.yml travis: fail-fast for wasm target 2020-05-13 14:48:46 +02:00
Cargo.toml matrix-sdk: Switch to upstream crates 2020-05-12 17:32:01 +02:00
LICENSE rust-sdk: Switch the license to Apache 2.0. 2020-02-21 16:54:05 +01:00
Makefile matrix-sdk: Split out the crypto part of the sdk into a separate crate. 2020-04-29 09:48:00 +02:00
README.md matrix-sdk: Add a bunch of readmes to the crates. 2020-05-26 19:33:13 +02:00
design.md state_store: clean up and add examples to docs 2020-04-26 17:13:55 -04:00

README.md

Build Status codecov License #matrix-rust-sdk

matrix-rust-sdk

matrix-rust-sdk is an implementation of a Matrix client-server library in Rust.

Project structure

The rust-sdk consists of multiple crates that can be picked at your convenience:

  • matrix-sdk - High level client library, with batteries included, you're most likely interested in this.
  • matrix-sdk-base - No (network) IO client state machine that can be used to embed a Matrix client in your project or build a full fledged network enabled client lib on top of it.
  • matrix-sdk-crypto - No (network) IO encryption state machine that can be used to add Matrix E2EE support to your client or client library.

Status

The library is in an alpha state, things that are implemented generally work but the API will change in breaking ways.

If you are interested in using the matrix-sdk now is the time to try it out and provide feedback.

License

Apache-2.0