Skip to content

Commit 6777907

Browse files
zecakehstefanceriu
authored andcommitted
Upgrade Ruma
Use the new release. Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
1 parent f2bdb7c commit 6777907

6 files changed

Lines changed: 44 additions & 32 deletions

File tree

Cargo.lock

Lines changed: 33 additions & 23 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
@@ -71,7 +71,7 @@ rand = { version = "0.10.1", default-features = false, features = ["std", "std_r
7171
regex = { version = "1.12.2", default-features = false }
7272
reqwest = { version = "0.13.1", default-features = false }
7373
rmp-serde = { version = "1.3.0", default-features = false }
74-
ruma = { git = "https://github.com/ruma/ruma", rev = "7680eebd9586669e1a4e5b1fd1c2c691221369d4", features = [
74+
ruma = { version = "0.15.1", features = [
7575
"client-api-c",
7676
"compat-unset-avatar",
7777
"compat-upload-signatures",
@@ -98,7 +98,7 @@ ruma = { git = "https://github.com/ruma/ruma", rev = "7680eebd9586669e1a4e5b1fd1
9898
sentry = { version = "0.47.0", default-features = false }
9999
sentry-tracing = { version = "0.47.0", default-features = false }
100100
serde = { version = "1.0.228", default-features = false, features = ["std", "rc", "derive"] }
101-
serde_html_form = { version = "0.2.8", default-features = false }
101+
serde_html_form = { version = "0.4.0", default-features = false }
102102
serde_json = { version = "1.0.145", default-features = false, features = ["std"] }
103103
sha2 = { version = "0.10.9", default-features = false }
104104
similar-asserts = { version = "1.7.0", default-features = false }

bindings/matrix-sdk-ffi/src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3054,7 +3054,7 @@ impl TryFrom<AllowRule> for RumaAllowRule {
30543054
let room_id = RoomId::parse(room_id)?;
30553055
Ok(Self::RoomMembership(ruma::room::RoomMembership::new(room_id)))
30563056
}
3057-
AllowRule::Custom { json } => Ok(Self::_Custom(Box::new(serde_json::from_str(&json)?))),
3057+
AllowRule::Custom { json } => Ok(serde_json::from_str(&json)?),
30583058
}
30593059
}
30603060
}

bindings/matrix-sdk-ffi/src/notification_settings.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,8 @@ impl TryFrom<SdkTweak> for Tweak {
318318
Self::Highlight { value: matches!(highlight, HighlightTweakValue::Yes) }
319319
}
320320
_ => {
321-
let json_string = value
322-
.custom_value()
323-
.ok_or_else(|| "Unsupported tweak type".to_owned())?
324-
.to_string();
321+
let json_string =
322+
value.value().ok_or_else(|| "Unsupported tweak type".to_owned())?.to_string();
325323

326324
Self::Custom { name: value.set_tweak().to_owned(), value: json_string }
327325
}

crates/matrix-sdk-store-encryption/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,18 @@ rust-version.workspace = true
1111
rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]
1212

1313
[package.metadata.cargo-machete]
14-
ignored = ["getrandom"] # We do manually enable a feature for it.
14+
ignored = ["getrandom", "getrandom_0_2"] # We manually enable a feature for each.
1515

1616
[features]
17-
js = ["dep:getrandom", "getrandom?/wasm_js"]
17+
js = ["dep:getrandom", "getrandom?/wasm_js", "dep:getrandom_0_2", "getrandom_0_2?/js"]
1818

1919
[dependencies]
2020
base64.workspace = true
2121
blake3 = { version = "1.8.2", default-features = false }
2222
chacha20poly1305 = { version = "0.10.1", default-features = false, features = ["std"] }
2323
getrandom = { workspace = true, optional = true }
24+
# This version is still in the dependency tree due to the chacha20poly1305 crate.
25+
getrandom_0_2 = { package = "getrandom", version = "0.2.5", default-features = false, optional = true }
2426
hmac.workspace = true
2527
pbkdf2.workspace = true
2628
rand = { workspace = true, features = ["thread_rng"] }

crates/matrix-sdk/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ All notable changes to this project will be documented in this file.
187187

188188
### Refactor
189189

190+
- [**breaking**] Upgrade Ruma to 0.15.1.
191+
([#6503](https://github.com/matrix-org/matrix-rust-sdk/pull/6503))
190192
- Revert back to to determining lock dirtiness in `Encryption::{spin_lock_store, try_lock_once_store}`
191193
through logic defined in `OlmMachine`, rather than `CrossProcessLock`.
192194
([#6496](https://github.com/matrix-org/matrix-rust-sdk/pull/6496))

0 commit comments

Comments
 (0)