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

Update README to document common feature flags for providers (websock… #1493

Merged
merged 3 commits into from
Jul 24, 2022

Conversation

dbelv
Copy link
Contributor

@dbelv dbelv commented Jul 21, 2022

…ets, ipc and https)

Motivation

Address issue #1261. Including additional information for ipc.

Solution

Update the README with a Providers section detailing the common feature flags.

PR Checklist

  • Added Tests (N/A)
  • Added Documentation
  • Updated the changelog (N/A)

I didn't update the changelog as there wasn't a good place to include this and I wasn't sure (given the existing entries) if a global section wanted to be included.

README.md Outdated
Comment on lines 125 to 131
If you are looking to connect to a HTTPS endpoint, then you need to enable TLS (`rustls`) and/or SSL (`openssl`)
feature-flags.

```toml
[dependencies]

ethers = { git = "https://github.com/gakonst/ethers-rs", features = ["openssl", "rustls"] }
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would rather recommend either-or. Enabling both doesn't make much sense.

so let's simply add two toml examples for openssl and rustls

README.md Outdated Show resolved Hide resolved
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.

awesome, ty!

@gakonst gakonst merged commit cf2aa07 into gakonst:master Jul 24, 2022
@dbelv dbelv deleted the readme-updates branch November 10, 2022 04:11
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