From 7ddfd84e20df47de3286a88261f03cdd8073fda7 Mon Sep 17 00:00:00 2001 From: Roman Krasiuk Date: Fri, 6 Jan 2023 13:08:26 +0200 Subject: [PATCH] disable native-tls on rusoto (#2021) --- Cargo.lock | 16 +++++++++++++++- ethers-signers/Cargo.toml | 6 +++--- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index cb472448..bbb9dbb1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2211,7 +2211,9 @@ checksum = "d87c48c02e0dc5e3b849a2041db3029fd066650f8f717c07bf8ed78ccb895cac" dependencies = [ "http", "hyper", + "log", "rustls", + "rustls-native-certs", "tokio", "tokio-rustls", ] @@ -3518,7 +3520,7 @@ dependencies = [ "futures", "http", "hyper", - "hyper-tls", + "hyper-rustls", "lazy_static", "log", "rusoto_credential", @@ -3629,6 +3631,18 @@ dependencies = [ "webpki", ] +[[package]] +name = "rustls-native-certs" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0167bac7a9f490495f3c33013e7722b53cb087ecbe082fb0c6387c96f634ea50" +dependencies = [ + "openssl-probe", + "rustls-pemfile", + "schannel", + "security-framework", +] + [[package]] name = "rustls-pemfile" version = "1.0.0" diff --git a/ethers-signers/Cargo.toml b/ethers-signers/Cargo.toml index 8a25e34f..169dfc6d 100644 --- a/ethers-signers/Cargo.toml +++ b/ethers-signers/Cargo.toml @@ -34,8 +34,8 @@ trezor-client = { version = "0.0.7", optional = true, default-features = false, ] } # aws -rusoto_core = { version = "0.48.0", optional = true } -rusoto_kms = { version = "0.48.0", optional = true } +rusoto_core = { version = "0.48.0", default-features = false, optional = true } +rusoto_kms = { version = "0.48.0", default-features = false, optional = true } tracing = { version = "0.1.37", optional = true } spki = { version = "0.6.0", optional = true } @@ -60,5 +60,5 @@ futures = ["futures-util", "futures-executor"] celo = ["ethers-core/celo"] ledger = ["coins-ledger", "futures", "semver"] yubi = ["yubihsm"] -aws = ["rusoto_core", "rusoto_kms", "tracing", "spki"] +aws = ["rusoto_core/rustls", "rusoto_kms/rustls", "tracing", "spki"] trezor = ["trezor-client", "futures", "semver", "home"]