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

Commit

Permalink
feat: allow using native-tls or rustls (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
gakonst authored Jul 5, 2021
1 parent 3234942 commit dd98a59
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
18 changes: 14 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions ethers-providers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ethers-core = { version = "0.2.2", path = "../ethers-core", default-features = f

async-trait = { version = "0.1.50", default-features = false }
hex = { version = "0.4.3", default-features = false, features = ["std"] }
reqwest = { version = "0.11.4", default-features = false, features = ["json", "rustls-tls"] }
reqwest = { version = "0.11.4", default-features = false, features = ["json"] }
serde = { version = "1.0.124", default-features = false, features = ["derive"] }
serde_json = { version = "1.0.64", default-features = false }
thiserror = { version = "1.0.26", default-features = false }
Expand All @@ -38,7 +38,7 @@ tracing-futures = { version = "0.2.5", default-features = false, features = ["st

# tokio
tokio = { version = "1.5", default-features = false, optional = true }
tokio-tungstenite = { version = "0.13.0", default-features = false, features = ["connect", "tls"], optional = true }
tokio-tungstenite = { version = "0.14.0", default-features = false, features = ["connect"], optional = true }
tokio-util = { version = "0.6.7", default-features = false, features = ["io"], optional = true }
bytes = { version = "1.0.1", default-features = false, optional = true }

Expand All @@ -48,7 +48,10 @@ tokio = { version = "1.5", default-features = false, features = ["rt", "macros"]
tempfile = "3.2.0"

[features]
default = ["ws", "ipc"]
default = ["ws", "ipc", "rustls"]
celo = ["ethers-core/celo"]
ws = ["tokio", "tokio-tungstenite"]
ipc = ["tokio", "tokio/io-util", "tokio-util", "bytes"]

openssl = ["tokio-tungstenite/native-tls", "reqwest/native-tls"]
rustls = ["tokio-tungstenite/rustls-tls", "reqwest/rustls-tls"]

0 comments on commit dd98a59

Please sign in to comment.