Skip to content

Commit 97578e4

Browse files
committed
Merge branch 'main' into ganfra/kotlin_bindings
2 parents 68a6d27 + 7d69fb2 commit 97578e4

File tree

59 files changed

+2513
-2072
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+2513
-2072
lines changed

Cargo.lock

Lines changed: 8 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ resolver = "2"
1919
rust-version = "1.65"
2020

2121
[workspace.dependencies]
22-
ruma = { git = "https://github.com/ruma/ruma", rev = "ed100afddb5fb30f1ccf368d7e712a3a483e63bf", features = ["client-api-c"] }
23-
ruma-common = { git = "https://github.com/ruma/ruma", rev = "ed100afddb5fb30f1ccf368d7e712a3a483e63bf" }
22+
ruma = { git = "https://github.com/ruma/ruma", rev = "3211fccab0b58a9adab1c8a775c1a3a8cff4121d", features = ["client-api-c"] }
23+
ruma-common = { git = "https://github.com/ruma/ruma", rev = "3211fccab0b58a9adab1c8a775c1a3a8cff4121d" }
2424
tracing = { version = "0.1.36", default-features = false, features = ["std"] }
2525
uniffi = { git = "https://github.com/mozilla/uniffi-rs", rev = "779e955f21a70e4aba43a7408f1841dcdf728b32" }
2626
uniffi_macros = { git = "https://github.com/mozilla/uniffi-rs", rev = "779e955f21a70e4aba43a7408f1841dcdf728b32" }

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,22 @@ Some crates of the **matrix-rust-sdk** can be embedded inside other
4242
environments, like Swift, Kotlin, JavaScript, Node.js etc. Please,
4343
explore the [`bindings/`](./bindings/) directory to learn more.
4444

45+
## Testing
46+
47+
You can run most of the tests that also happen in CI also using `cargo xtask ci`.
48+
This needs a few dependencies to be installed, as it also runs automatic WASM tests:
49+
50+
```bash
51+
rustup component add clippy
52+
cargo install cargo-nextest typos-cli wasm-pack
53+
```
54+
55+
If you want to execute only one part of CI, there are a few sub-commands (see `cargo xtask ci --help`).
56+
57+
Some tests are not automatically run in `cargo xtask ci`, for example the integration tests,
58+
that need a running synapse instance. These tests reside in `./testing/matrix-sdk-integration-testing`.
59+
See its [README](./testing/matrix-sdk-integration-testing/README.md) to easily set up a synapse for testing purposes.
60+
4561
## License
4662

4763
[Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0)

bindings/matrix-sdk-crypto-ffi/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ crate-type = ["cdylib", "staticlib"]
1515
[dependencies]
1616
anyhow = "1.0.57"
1717
base64 = "0.13.0"
18+
futures-util = "0.3.25"
1819
hmac = "0.12.1"
1920
http = "0.2.6"
2021
pbkdf2 = "0.11.0"

bindings/matrix-sdk-crypto-ffi/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ use ruma::{
4545
use serde::{Deserialize, Serialize};
4646
pub use users::UserIdentity;
4747
pub use verification::{
48-
CancelInfo, ConfirmVerificationResult, QrCode, RequestVerificationResult, Sas, ScanResult,
49-
StartSasResult, Verification, VerificationRequest,
48+
CancelInfo, ConfirmVerificationResult, QrCode, RequestVerificationResult, Sas, SasListener,
49+
SasState, ScanResult, StartSasResult, Verification, VerificationRequest,
5050
};
5151

5252
/// Struct collecting data that is important to migrate to the rust-sdk

0 commit comments

Comments
 (0)