Skip to content

Commit 452c513

Browse files
committed
Merge branch 'main' into toger5/widget-driver-matrix-api-errors
2 parents 69b980f + 75d7d07 commit 452c513

File tree

163 files changed

+9597
-2162
lines changed

Some content is hidden

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

163 files changed

+9597
-2162
lines changed

.deny.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ exclude = [
1010
version = 2
1111
ignore = [
1212
{ id = "RUSTSEC-2023-0071", reason = "We are not using RSA directly, nor do we depend on the RSA crate directly" },
13+
{ id = "RUSTSEC-2024-0384", reason = "Unmaintained backoff crate, not critical. We'll migrate soon." },
1314
]
1415

1516
[licenses]

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ jobs:
304304
uses: actions/checkout@v4
305305

306306
- name: Check the spelling of the files in our repo
307-
uses: crate-ci/[email protected].0
307+
uses: crate-ci/[email protected].3
308308

309309
clippy:
310310
name: Run clippy

.github/workflows/upload_coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copied with minimal adjustments, source:
22
# https://github.com/google/mdbook-i18n-helpers/blob/2168b9cea1f4f76b55426591a9bcc308a620194f/.github/workflows/coverage-report.yml
3-
name: Codecov
3+
name: Upload code coverage
44

55
on:
66
# This workflow is triggered after every successful execution
@@ -64,7 +64,7 @@ jobs:
6464
path: repo_root
6565

6666
- name: Upload coverage to Codecov
67-
uses: codecov/codecov-action@v4
67+
uses: codecov/codecov-action@v5
6868
with:
6969
token: ${{ secrets.CODECOV_UPLOAD_TOKEN }}
7070
fail_ci_if_error: true

ARCHITECTURE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ implement encryption at rest can use those primitives.
7676

7777
Very high-level primitives implementing the best practices and cutting-edge Matrix tech:
7878

79-
- `EncryptionService`: a specialized service running simplified sliding sync (MSC4186) for
79+
- `EncryptionSyncService`: a specialized service running simplified sliding sync (MSC4186) for
8080
everything related to crypto and E2EE for the current `Client`.
8181
- `RoomListService`: a specialized service running simplified sliding sync (MSC4186) for
8282
retrieving the list of current rooms, and exposing its entries.

Cargo.lock

Lines changed: 51 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: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ rust-version = "1.76"
2222

2323
[workspace.dependencies]
2424
anyhow = "1.0.68"
25+
aquamarine = "0.6.0"
2526
assert-json-diff = "2"
2627
assert_matches = "1.5.0"
2728
assert_matches2 = "0.1.1"
@@ -32,8 +33,8 @@ as_variant = "1.2.0"
3233
base64 = "0.22.0"
3334
byteorder = "1.4.3"
3435
eyeball = { version = "0.8.8", features = ["tracing"] }
35-
eyeball-im = { version = "0.5.0", features = ["tracing"] }
36-
eyeball-im-util = "0.6.0"
36+
eyeball-im = { version = "0.5.1", features = ["tracing"] }
37+
eyeball-im-util = "0.7.0"
3738
futures-core = "0.3.28"
3839
futures-executor = "0.3.21"
3940
futures-util = "0.3.26"
@@ -79,17 +80,17 @@ vodozemac = { version = "0.8.0", features = ["insecure-pk-encryption"] }
7980
wiremock = "0.6.0"
8081
zeroize = "1.6.0"
8182

82-
matrix-sdk = { path = "crates/matrix-sdk", version = "0.7.0", default-features = false }
83-
matrix-sdk-base = { path = "crates/matrix-sdk-base", version = "0.7.0" }
84-
matrix-sdk-common = { path = "crates/matrix-sdk-common", version = "0.7.0" }
85-
matrix-sdk-crypto = { path = "crates/matrix-sdk-crypto", version = "0.7.0" }
83+
matrix-sdk = { path = "crates/matrix-sdk", version = "0.8.0", default-features = false }
84+
matrix-sdk-base = { path = "crates/matrix-sdk-base", version = "0.8.0" }
85+
matrix-sdk-common = { path = "crates/matrix-sdk-common", version = "0.8.0" }
86+
matrix-sdk-crypto = { path = "crates/matrix-sdk-crypto", version = "0.8.0" }
8687
matrix-sdk-ffi-macros = { path = "bindings/matrix-sdk-ffi-macros", version = "0.7.0" }
87-
matrix-sdk-indexeddb = { path = "crates/matrix-sdk-indexeddb", version = "0.7.0", default-features = false }
88-
matrix-sdk-qrcode = { path = "crates/matrix-sdk-qrcode", version = "0.7.0" }
89-
matrix-sdk-sqlite = { path = "crates/matrix-sdk-sqlite", version = "0.7.0", default-features = false }
90-
matrix-sdk-store-encryption = { path = "crates/matrix-sdk-store-encryption", version = "0.7.0" }
88+
matrix-sdk-indexeddb = { path = "crates/matrix-sdk-indexeddb", version = "0.8.0", default-features = false }
89+
matrix-sdk-qrcode = { path = "crates/matrix-sdk-qrcode", version = "0.8.0" }
90+
matrix-sdk-sqlite = { path = "crates/matrix-sdk-sqlite", version = "0.8.0", default-features = false }
91+
matrix-sdk-store-encryption = { path = "crates/matrix-sdk-store-encryption", version = "0.8.0" }
9192
matrix-sdk-test = { path = "testing/matrix-sdk-test", version = "0.7.0" }
92-
matrix-sdk-ui = { path = "crates/matrix-sdk-ui", version = "0.7.0", default-features = false }
93+
matrix-sdk-ui = { path = "crates/matrix-sdk-ui", version = "0.8.0", default-features = false }
9394

9495
# Default release profile, select with `--release`
9596
[profile.release]

benchmarks/benches/room_bench.rs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@ use std::{sync::Arc, time::Duration};
22

33
use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion, Throughput};
44
use matrix_sdk::{
5-
config::SyncSettings,
6-
test_utils::{events::EventFactory, logged_in_client_with_server},
7-
utils::IntoRawStateEventContent,
5+
config::SyncSettings, test_utils::logged_in_client_with_server, utils::IntoRawStateEventContent,
86
};
97
use matrix_sdk_base::{
108
store::StoreConfig, BaseClient, RoomInfo, RoomState, SessionMeta, StateChanges, StateStore,
119
};
1210
use matrix_sdk_sqlite::SqliteStateStore;
13-
use matrix_sdk_test::{EventBuilder, JoinedRoomBuilder, StateTestEvent, SyncResponseBuilder};
11+
use matrix_sdk_test::{
12+
event_factory::EventFactory, EventBuilder, JoinedRoomBuilder, StateTestEvent,
13+
SyncResponseBuilder,
14+
};
1415
use matrix_sdk_ui::{timeline::TimelineFocus, Timeline};
1516
use ruma::{
1617
api::client::membership::get_member_events,
@@ -74,7 +75,10 @@ pub fn receive_all_members_benchmark(c: &mut Criterion) {
7475
.block_on(sqlite_store.save_changes(&changes))
7576
.expect("initial filling of sqlite failed");
7677

77-
let base_client = BaseClient::with_store_config(StoreConfig::new().state_store(sqlite_store));
78+
let base_client = BaseClient::with_store_config(
79+
StoreConfig::new("cross-process-store-locks-holder-name".to_owned())
80+
.state_store(sqlite_store),
81+
);
7882

7983
runtime
8084
.block_on(base_client.set_session_meta(

benchmarks/benches/store_bench.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ pub fn restore_session(c: &mut Criterion) {
6969
b.to_async(&runtime).iter(|| async {
7070
let client = Client::builder()
7171
.homeserver_url("https://matrix.example.com")
72-
.store_config(StoreConfig::new().state_store(store.clone()))
72+
.store_config(
73+
StoreConfig::new("cross-process-store-locks-holder-name".to_owned())
74+
.state_store(store.clone()),
75+
)
7376
.build()
7477
.await
7578
.expect("Can't build client");
@@ -96,7 +99,10 @@ pub fn restore_session(c: &mut Criterion) {
9699
b.to_async(&runtime).iter(|| async {
97100
let client = Client::builder()
98101
.homeserver_url("https://matrix.example.com")
99-
.store_config(StoreConfig::new().state_store(store.clone()))
102+
.store_config(
103+
StoreConfig::new("cross-process-store-locks-holder-name".to_owned())
104+
.state_store(store.clone()),
105+
)
100106
.build()
101107
.await
102108
.expect("Can't build client");

bindings/apple/Debug-Package.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ let package = Package(
1313
],
1414
products: [
1515
.library(name: "MatrixRustSDK",
16+
type: .dynamic,
1617
targets: ["MatrixRustSDK"]),
1718
],
1819
targets: [

bindings/matrix-sdk-ffi/src/api.udl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,3 @@ interface RoomMessageEventContentWithoutRelation {
1313
interface ClientError {
1414
Generic(string msg);
1515
};
16-
17-
interface MediaSource {
18-
[Name=from_json, Throws=ClientError]
19-
constructor(string json);
20-
string to_json();
21-
string url();
22-
};

0 commit comments

Comments
 (0)