mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-14 11:05:32 -04:00
349c7c3f68f609218622ce01d552fecaf91e6fc2
SlidingSyncRoom::prev_batch.
A `SlidingSyncRoom` receives an Ruma `api::client::sync::sync_events::v4:SlidingSyncRoom`. This value is stored in the `SlidingSyncRoom::inner` field. From here, some getters like `name()`, `is_dm()` etc. are using the `inner` field to compute a result. There was one exception though: `prev_batch`. This value is part of `v4::SlidingSyncRoom` but it was copied and updated in its own field: `SlidingSyncRoom::prev_batch`. I was wondering why. Turns out, there is no reason. Its getter `prev_batch()` is public, but it's not used by the FFI bindings, so basically nobody uses it (as this project is experimental as the time of writing, we know our users). This patch removes the `SlidingSyncRoom::prev_batch` field. This patch also removes the `SlidingSyncRoom::prev_batch()` getter. This patch finally removes the `FrozenSlidingSyncRoom::prev_batch` field too.
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.
Minimum Supported Rust Version (MSRV)
These crates are built with the Rust language version 2021 and require a minimum compiler version of 1.65.
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.
Bindings
Some crates of the matrix-rust-sdk can be embedded inside other
environments, like Swift, Kotlin, JavaScript, Node.js etc. Please,
explore the bindings/ directory to learn more.
License
Description
Languages
Rust
99.7%
HTML
0.2%