ethers-rs/ethers-providers/Cargo.toml

74 lines
2.5 KiB
TOML
Raw Normal View History

2020-05-26 09:37:31 +00:00
[package]
name = "ethers-providers"
license = "MIT OR Apache-2.0"
version = "0.1.3"
2020-05-26 09:37:31 +00:00
authors = ["Georgios Konstantopoulos <me@gakonst.com>"]
edition = "2018"
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
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
2020-05-26 09:37:31 +00:00
[dependencies]
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 }
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
# 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 }
pin-project = { version = "0.4.20", default-features = false }
async-tungstenite = { version = "0.6.0", default-features = false }
# ws support async-std and tokio runtimes for the convenience methods
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 }
futures-timer = "3.0.2"
2020-05-27 11:32:44 +00:00
[dev-dependencies]
ethers = { version = "0.1.3", path = "../ethers" }
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"] }
async-std = { version = "1.6.2", default-features = false, features = ["attributes"] }
async-tungstenite = { version = "0.6.0", features = ["tokio-runtime"] }
[features]
# slightly opinionated, but for convenience we default to tokio-tls
# to allow websockets w/ TLS support
default = ["tokio-tls"]
celo = ["ethers-core/celo"]
tokio-runtime = [
"tokio",
"async-tungstenite/tokio-runtime"
]
tokio-tls = [
"tokio-runtime",
"async-tungstenite/tokio-native-tls",
"real-tokio-native-tls"
]
async-std-runtime = [
"async-std",
"async-tungstenite/async-std-runtime"
]
async-std-tls = [
"async-std-runtime",
"async-tungstenite/async-tls",
"async-tls"
]