2020-05-26 09:37:31 +00:00
|
|
|
[package]
|
|
|
|
name = "ethers-providers"
|
2020-06-18 05:20:20 +00:00
|
|
|
license = "MIT OR Apache-2.0"
|
2020-06-20 13:55:07 +00:00
|
|
|
version = "0.1.3"
|
2020-05-26 09:37:31 +00:00
|
|
|
authors = ["Georgios Konstantopoulos <me@gakonst.com>"]
|
|
|
|
edition = "2018"
|
2020-06-20 13:55:07 +00:00
|
|
|
description = "Provider implementations for the ethers-rs crate"
|
|
|
|
homepage = "https://docs.rs/ethers"
|
|
|
|
repository = "https://github.com/gakonst/ethers-rs"
|
|
|
|
keywords = ["ethereum", "web3", "celo", "ethers"]
|
2020-05-26 09:37:31 +00:00
|
|
|
|
2020-06-21 07:17:11 +00:00
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
|
2020-05-26 09:37:31 +00:00
|
|
|
[dependencies]
|
2020-06-20 13:55:07 +00:00
|
|
|
ethers-core = { version = "0.1.3", path = "../ethers-core" }
|
2020-05-26 09:52:15 +00:00
|
|
|
|
|
|
|
async-trait = { version = "0.1.31", default-features = false }
|
|
|
|
reqwest = { version = "0.10.4", default-features = false, features = ["json", "rustls-tls"] }
|
|
|
|
serde = { version = "1.0.110", default-features = false, features = ["derive"] }
|
|
|
|
serde_json = { version = "1.0.53", default-features = false }
|
2020-06-17 06:38:04 +00:00
|
|
|
thiserror = { version = "1.0.15", default-features = false }
|
2020-05-26 09:52:15 +00:00
|
|
|
url = { version = "2.1.1", default-features = false }
|
2020-05-27 11:32:44 +00:00
|
|
|
|
2020-06-15 08:46:07 +00:00
|
|
|
# required for implementing stream on the filters
|
|
|
|
futures-core = { version = "0.3.5", default-features = false }
|
|
|
|
futures-util = { version = "0.3.5", default-features = false }
|
2020-07-02 15:33:16 +00:00
|
|
|
futures-timer = { version = "3.0.2", default-features = false }
|
2020-06-15 08:46:07 +00:00
|
|
|
pin-project = { version = "0.4.20", default-features = false }
|
2020-06-21 07:17:11 +00:00
|
|
|
|
|
|
|
# ws support async-std and tokio runtimes for the convenience methods
|
2020-07-02 15:33:16 +00:00
|
|
|
async-tungstenite = { version = "0.6.0", default-features = false, optional = true }
|
2020-06-21 07:17:11 +00:00
|
|
|
async-std = { version = "1.6.2", default-features = false, optional = true }
|
|
|
|
tokio = { version = "0.2.21", default-features = false, optional = true }
|
|
|
|
|
|
|
|
# needed for tls
|
|
|
|
real-tokio-native-tls = { package = "tokio-native-tls", version = "0.1.0", optional = true }
|
|
|
|
async-tls = { version = "0.7.0", optional = true }
|
2020-06-15 08:46:07 +00:00
|
|
|
|
2020-08-18 18:47:56 +00:00
|
|
|
# needed for parsing while deserialization in gas oracles
|
|
|
|
serde-aux = "0.6.1"
|
|
|
|
|
2020-05-27 11:32:44 +00:00
|
|
|
[dev-dependencies]
|
2020-06-20 13:55:07 +00:00
|
|
|
ethers = { version = "0.1.3", path = "../ethers" }
|
2020-06-17 08:02:03 +00:00
|
|
|
|
2020-05-27 11:32:44 +00:00
|
|
|
rustc-hex = "2.1.0"
|
2020-05-28 16:34:06 +00:00
|
|
|
tokio = { version = "0.2.21", default-features = false, features = ["rt-core", "macros"] }
|
2020-06-21 07:17:11 +00:00
|
|
|
async-std = { version = "1.6.2", default-features = false, features = ["attributes"] }
|
2020-07-02 15:33:16 +00:00
|
|
|
async-tungstenite = { version = "0.6.0", default-features = false, features = ["tokio-runtime"] }
|
2020-06-17 09:22:01 +00:00
|
|
|
|
|
|
|
[features]
|
2020-06-22 13:42:34 +00:00
|
|
|
# slightly opinionated, but for convenience we default to tokio-tls
|
|
|
|
# to allow websockets w/ TLS support
|
|
|
|
default = ["tokio-tls"]
|
2020-06-17 09:22:01 +00:00
|
|
|
celo = ["ethers-core/celo"]
|
2020-07-02 15:33:16 +00:00
|
|
|
ws = ["async-tungstenite"]
|
2020-06-20 13:55:07 +00:00
|
|
|
|
2020-06-21 07:17:11 +00:00
|
|
|
tokio-runtime = [
|
2020-07-02 15:33:16 +00:00
|
|
|
"ws",
|
2020-06-21 07:17:11 +00:00
|
|
|
"tokio",
|
|
|
|
"async-tungstenite/tokio-runtime"
|
|
|
|
]
|
|
|
|
tokio-tls = [
|
|
|
|
"tokio-runtime",
|
|
|
|
"async-tungstenite/tokio-native-tls",
|
|
|
|
"real-tokio-native-tls"
|
|
|
|
]
|
|
|
|
|
|
|
|
async-std-runtime = [
|
2020-07-02 15:33:16 +00:00
|
|
|
"ws",
|
2020-06-21 07:17:11 +00:00
|
|
|
"async-std",
|
|
|
|
"async-tungstenite/async-std-runtime"
|
|
|
|
]
|
|
|
|
async-std-tls = [
|
|
|
|
"async-std-runtime",
|
|
|
|
"async-tungstenite/async-tls",
|
|
|
|
"async-tls"
|
|
|
|
]
|