rust: Upgrade our deps

This commit is contained in:
Damir Jelić 2021-05-25 16:13:12 +02:00
parent 49fa34e997
commit 688c167166
2 changed files with 10 additions and 10 deletions

View file

@ -9,14 +9,14 @@ crate-type = ["cdylib", "lib"]
name = "matrix_crypto"
[dependencies]
serde = "1.0.64"
serde = "1.0.126"
serde_json = "1.0.64"
http = "0.2.4"
thiserror = "1.0.24"
tracing = "0.1.25"
tracing-subscriber = "0.2.17"
uniffi = "0.8.0"
thiserror = "1.0.25"
tracing = "0.1.26"
tracing-subscriber = "0.2.18"
uniffi = "0.9.0"
[dependencies.js_int]
version = "0.2.0"
@ -24,17 +24,17 @@ features = ["lax_deserialize"]
[dependencies.matrix-sdk-common]
git = "https://github.com/matrix-org/matrix-rust-sdk/"
branch = "encryption-info-v2"
rev = "e058191b992f261a1a848b7ec521badf173881d6"
[dependencies.matrix-sdk-crypto]
git = "https://github.com/matrix-org/matrix-rust-sdk/"
branch = "encryption-info-v2"
rev = "e058191b992f261a1a848b7ec521badf173881d6"
features = ["sled_cryptostore"]
[dependencies.tokio]
version = "1.4.0"
version = "1.6.0"
default_features = false
features = ["rt-multi-thread"]
[build-dependencies]
uniffi_build = "0.8.0"
uniffi_build = "0.9.0"

View file

@ -386,7 +386,7 @@ impl OlmMachine {
let room_id = RoomId::try_from(room_id)?;
let content: Box<RawValue> = serde_json::from_str(content)?;
let content = AnyMessageEventContent::from_parts(event_type, content)?;
let content = AnyMessageEventContent::from_parts(event_type, &content)?;
let encrypted_content = self
.runtime
.block_on(self.inner.encrypt(&room_id, content))