Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

fix: Add openssl and rustls feature flags in ethers-middleware #1961

Merged
merged 2 commits into from
Dec 21, 2022

Conversation

oblique
Copy link
Contributor

@oblique oblique commented Dec 21, 2022

Motivation

I was working on a project with requirement to use OpenSSL, so I added this:

ethers = { version = "1.0.2", default-features = false, features = ["ws", "openssl"] }

But I noticed that rustls was still building.

Solution

The problem was that ethers-middleware was explicitly using reqwest with rustls-tls enabled, so I added rustls and openssl feature flags to it.

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog
  • Breaking changes

@oblique oblique force-pushed the fix-tls branch 2 times, most recently from d7e390e to 58bba8e Compare December 21, 2022 11:10
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

…act-abigen

Without this fix, `rustls` was enabled by default even if user had `openssl` feature flag
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants