From 85ecbb03e299e99dbb2bc7864136a40add71df72 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 7 Oct 2021 21:57:52 +0200 Subject: Update dependencies The biggest adaption was the update to matrix-sdk 0.4, as some types got shuffled around and the API is now imported from ruma. The relates_to.is_none() check seems to no longer work, as Relation::_Custom is used instead, so instead we now explicitely check if the message is neither a reply nor a replacement (on a related note, it is unknown to me whether we need to find the first original message or if we could also set a replaces on the last message in the chain). serenity, tokio and reqwest needed no API updates on the other hand. --- Cargo.toml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 78abccd..0ac990a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ license = "MIT" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [features] -im-matrix = ["matrix-sdk", "tokio"] +im-matrix = ["matrix-sdk", "ruma", "tokio"] im-discord = ["serenity", "tokio"] [dependencies] @@ -17,7 +17,8 @@ log = "0.4.8" pretty_env_logger = "0.4.0" anyhow = "1.0.31" evtclib = "0.5.0" -reqwest = { version = "0.10.6", features = ["json", "blocking"] } +reqwest = { version = "0.11.5", features = ["json", "blocking", "multipart"] } +url = { version = "2.2.2", features = ["serde"] } serde = { version = "1.0.111", features = ["derive"] } chrono = "0.4.11" notify = "4.0.15" @@ -26,8 +27,9 @@ zip = "0.5.5" toml = "0.5.6" itertools = "0.10.0" # Optional features for IM integration -tokio = { version = "0.2", features = ["rt-core"], optional = true } -matrix-sdk = { version = "0.2.0", optional = true } +tokio = { version = "1.12", features = ["rt"], optional = true } +matrix-sdk = { version = "0.4.1", optional = true } +ruma = { version = "0.4", optional = true, features = ["api", "client", "events"] } [dependencies.serenity] default-features = false @@ -41,5 +43,5 @@ features = [ "utils", "rustls_backend", ] -version = "0.9" +version = "0.10" optional = true -- cgit v1.2.3