From 2d10ea4dc9521e8ebaa2cc7afbd9d7bb5cc38860 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Wed, 8 May 2024 21:15:57 +0200 Subject: [PATCH] chore(sdk): Use `pin-project-lite` in `matrix-sdk`. This patch moves the `pin-project-lite` dependency from `matrix-sdk-ui` to the workspace, and uses it in `matrix-sdk`. --- Cargo.lock | 1 + Cargo.toml | 5 +++-- crates/matrix-sdk-ui/Cargo.toml | 2 +- crates/matrix-sdk/Cargo.toml | 1 + 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8842b135f..6c9e97b99 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3170,6 +3170,7 @@ dependencies = [ "mime", "mime2ext", "once_cell", + "pin-project-lite", "rand", "reqwest", "ruma", diff --git a/Cargo.toml b/Cargo.toml index 3c31f2a20..854a1a1b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -39,6 +39,9 @@ futures-util = { version = "0.3.26", default-features = false, features = [ http = "1.1.0" imbl = "2.0.0" itertools = "0.12.0" +once_cell = "1.16.0" +pin-project-lite = "0.2.9" +rand = "0.8.5" reqwest = { version = "0.12.4", default-features = false } ruma = { version = "0.10.1", features = [ "client-api-c", @@ -50,8 +53,6 @@ ruma = { version = "0.10.1", features = [ "unstable-msc3266", ] } ruma-common = { version = "0.13.0" } -once_cell = "1.16.0" -rand = "0.8.5" serde = "1.0.151" serde_html_form = "0.2.0" serde_json = "1.0.91" diff --git a/crates/matrix-sdk-ui/Cargo.toml b/crates/matrix-sdk-ui/Cargo.toml index 45aa0134c..f09b9b74b 100644 --- a/crates/matrix-sdk-ui/Cargo.toml +++ b/crates/matrix-sdk-ui/Cargo.toml @@ -41,7 +41,7 @@ matrix-sdk = { workspace = true, features = ["experimental-sliding-sync"] } matrix-sdk-base = { workspace = true } mime = "0.3.16" once_cell = { workspace = true } -pin-project-lite = "0.2.9" +pin-project-lite = { workspace = true } ruma = { workspace = true, features = ["html", "unstable-msc3381"] } serde = { workspace = true } serde_json = { workspace = true } diff --git a/crates/matrix-sdk/Cargo.toml b/crates/matrix-sdk/Cargo.toml index fbe802b62..e170e1467 100644 --- a/crates/matrix-sdk/Cargo.toml +++ b/crates/matrix-sdk/Cargo.toml @@ -96,6 +96,7 @@ matrix-sdk-sqlite = { workspace = true, optional = true } matrix-sdk-test = { workspace = true, optional = true } mime = "0.3.16" mime2ext = "0.1.52" +pin-project-lite = { workspace = true } rand = { workspace = true , optional = true } ruma = { workspace = true, features = ["rand", "unstable-msc2448", "unstable-msc2965", "unstable-msc3930", "unstable-msc3245-v1-compat", "unstable-msc2867"] } serde = { workspace = true }