From 49ff815be82c42b827057430f4a705f8582218c6 Mon Sep 17 00:00:00 2001 From: Philipp Schuster Date: Wed, 1 May 2024 23:03:24 +0200 Subject: [PATCH] rustls-connector: adapt to latest upstream changes Refrence: https://github.com/amqp-rs/rustls-connector/pull/5#issuecomment-2089038217 --- Cargo.lock | 12 +----------- Cargo.toml | 5 +++-- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5e0cdc6..b36dbf9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -742,14 +742,13 @@ dependencies = [ [[package]] name = "rustls-connector" version = "0.21.0" -source = "git+https://github.com/phip1611/rustls-connector?branch=rustls-fix#eb2a5ed6542de224cfc9b45fd5f0c61507613080" +source = "git+https://github.com/phip1611/rustls-connector?branch=rustls-fix#e1d872e87853e01c4a01ee8d1b177cbc3195ad03" dependencies = [ "log", "rustls 0.23.5", "rustls-native-certs", "rustls-pki-types", "rustls-webpki 0.102.3", - "webpki-roots", ] [[package]] @@ -1141,15 +1140,6 @@ version = "0.11.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" -[[package]] -name = "webpki-roots" -version = "0.26.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3de34ae270483955a94f4b21bdaaeb83d508bb84a01435f393818edb0012009" -dependencies = [ - "rustls-pki-types", -] - [[package]] name = "widestring" version = "1.1.0" diff --git a/Cargo.toml b/Cargo.toml index e2a593e..795edf6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,9 +42,10 @@ hickory-resolver = { version = "0.24.0", default-features = false, features = [" # TLS handshake rustls = { version = "0.23.0", default-features = false, features = [ "tls12", "logging", "ring"] } # rustls-connector = { version = "0.21.0", features = [ -rustls-connector = { git = "https://github.com/phip1611/rustls-connector", branch = "rustls-fix", features = [ +rustls-connector = { git = "https://github.com/phip1611/rustls-connector", branch = "rustls-fix", default-features = false, features = [ + "rustls--ring", + "native-certs", "rustls-native-certs", - "webpki-roots", "webpki-roots-certs", ] } # automatic Display impl for enums