From 53ab8a3b351ad0ad399bd3087656b00e846cdeca Mon Sep 17 00:00:00 2001 From: link2xt Date: Tue, 13 Jun 2023 17:41:37 +0000 Subject: [PATCH] fix: update to async-imap 0.9.0 to remove deprecated `ouroboros` dependency `ouroboros` is deprecated with a security advisory recommending switch to `self_cell` crate: https://rustsec.org/advisories/RUSTSEC-2023-0042 async-imap 0.9.0 depends on `self_cell` instead of `ouroboros`. --- Cargo.lock | 47 +++++++++-------------------------------------- Cargo.toml | 2 +- 2 files changed, 10 insertions(+), 39 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 634d081f5..251bee6a5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,12 +2,6 @@ # It is not intended for manual editing. version = 3 -[[package]] -name = "Inflector" -version = "0.11.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3" - [[package]] name = "abao" version = "0.2.0" @@ -67,12 +61,6 @@ dependencies = [ "memchr", ] -[[package]] -name = "aliasable" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "250f629c0161ad8107cf89319e990051fae62832fd343083bea452d93e2205fd" - [[package]] name = "alloc-no-stdlib" version = "2.0.4" @@ -216,9 +204,9 @@ dependencies = [ [[package]] name = "async-imap" -version = "0.8.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d11e163a705d0c809dfc886eee95df5117c758539c940c0fe9aa3aa4da5388ce" +checksum = "da93622739d458dd9a6abc1abf0e38e81965a5824a3b37f9500437c82a8bb572" dependencies = [ "async-channel", "base64 0.21.2", @@ -229,8 +217,8 @@ dependencies = [ "log", "nom", "once_cell", - "ouroboros", "pin-utils", + "self_cell", "stop-token", "thiserror", "tokio", @@ -3168,29 +3156,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "ouroboros" -version = "0.15.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1358bd1558bd2a083fed428ffeda486fbfb323e698cdda7794259d592ca72db" -dependencies = [ - "aliasable", - "ouroboros_macro", -] - -[[package]] -name = "ouroboros_macro" -version = "0.15.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f7d21ccd03305a674437ee1248f3ab5d4b1db095cf1caf49f1713ddf61956b7" -dependencies = [ - "Inflector", - "proc-macro-error", - "proc-macro2", - "quote", - "syn 1.0.109", -] - [[package]] name = "output_vt100" version = "0.1.3" @@ -4311,6 +4276,12 @@ dependencies = [ "libc", ] +[[package]] +name = "self_cell" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c309e515543e67811222dbc9e3dd7e1056279b782e1dacffe4242b718734fb6" + [[package]] name = "semver" version = "1.0.16" diff --git a/Cargo.toml b/Cargo.toml index 85649bf97..c8a595c5c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,7 +36,7 @@ ratelimit = { path = "./deltachat-ratelimit" } anyhow = "1" async-channel = "1.8.0" -async-imap = { version = "0.8.0", default-features = false, features = ["runtime-tokio"] } +async-imap = { version = "0.9.0", default-features = false, features = ["runtime-tokio"] } async-native-tls = { version = "0.5", default-features = false, features = ["runtime-tokio"] } async-smtp = { version = "0.9", default-features = false, features = ["runtime-tokio"] } async_zip = { version = "0.0.12", default-features = false, features = ["deflate", "fs"] }