2020-05-26 09:37:31 +00:00
|
|
|
[package]
|
|
|
|
name = "ethers-providers"
|
2022-11-27 20:27:56 +00:00
|
|
|
version = "1.0.2"
|
2022-12-30 12:48:29 +00:00
|
|
|
edition = "2021"
|
2022-12-06 06:04:48 +00:00
|
|
|
rust-version = "1.64"
|
2022-09-18 15:45:45 +00:00
|
|
|
authors = ["Georgios Konstantopoulos <me@gakonst.com>"]
|
|
|
|
license = "MIT OR Apache-2.0"
|
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]
|
2022-10-25 18:02:59 +00:00
|
|
|
ethers-core = { version = "^1.0.0", path = "../ethers-core", default-features = false }
|
2020-05-26 09:52:15 +00:00
|
|
|
|
2021-04-27 20:18:06 +00:00
|
|
|
async-trait = { version = "0.1.50", default-features = false }
|
2021-03-04 07:30:36 +00:00
|
|
|
hex = { version = "0.4.3", default-features = false, features = ["std"] }
|
2023-01-27 18:13:10 +00:00
|
|
|
reqwest = { version = "0.11.14", default-features = false, features = ["json"] }
|
2021-03-08 07:48:24 +00:00
|
|
|
serde = { version = "1.0.124", default-features = false, features = ["derive"] }
|
2022-04-09 02:11:53 +00:00
|
|
|
serde_json = { version = "1.0.64", default-features = false, features = ["raw_value"] }
|
2022-05-23 18:41:30 +00:00
|
|
|
thiserror = { version = "1.0", default-features = false }
|
2022-09-11 01:03:15 +00:00
|
|
|
url = { version = "2.3.1", default-features = false }
|
2022-06-03 16:16:44 +00:00
|
|
|
auto_impl = { version = "1.0.1", default-features = false }
|
2022-01-28 06:51:13 +00:00
|
|
|
http = { version = "0.2" }
|
2023-01-09 05:16:11 +00:00
|
|
|
base64 = "0.21"
|
2020-05-27 11:32:44 +00:00
|
|
|
|
2020-06-15 08:46:07 +00:00
|
|
|
# required for implementing stream on the filters
|
2021-08-20 16:58:13 +00:00
|
|
|
futures-core = { version = "0.3.16", default-features = false }
|
2021-12-15 02:32:36 +00:00
|
|
|
futures-util = { version = "^0.3" }
|
2020-07-02 15:33:16 +00:00
|
|
|
futures-timer = { version = "3.0.2", default-features = false }
|
2022-03-19 17:05:39 +00:00
|
|
|
futures-channel = { version = "0.3.16", default-features = false, optional = true }
|
2022-07-06 20:22:55 +00:00
|
|
|
pin-project = { version = "1.0.11", default-features = false }
|
2020-06-21 07:17:11 +00:00
|
|
|
|
2022-11-30 21:22:44 +00:00
|
|
|
# peer-related admin namespace
|
|
|
|
enr = { version = "0.7.0", default-features = false, features = ["k256", "serde"] }
|
|
|
|
|
2020-12-25 00:17:21 +00:00
|
|
|
# tracing
|
2022-10-07 17:03:01 +00:00
|
|
|
tracing = { version = "0.1.37", default-features = false }
|
2021-03-04 07:30:27 +00:00
|
|
|
tracing-futures = { version = "0.2.5", default-features = false, features = ["std-future"] }
|
2020-12-25 00:17:21 +00:00
|
|
|
|
2023-02-01 23:32:32 +00:00
|
|
|
bytes = { version = "1.4.0", default-features = false, optional = true }
|
2022-12-30 12:43:05 +00:00
|
|
|
once_cell = "1.17.0"
|
2022-04-24 14:09:56 +00:00
|
|
|
hashers = "1.0.1"
|
2021-08-23 09:56:44 +00:00
|
|
|
|
2023-01-03 14:15:51 +00:00
|
|
|
[target.'cfg(target_family = "windows")'.dependencies]
|
|
|
|
winapi = { version = "0.3", optional = true }
|
|
|
|
|
2021-08-23 09:56:44 +00:00
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
2020-12-31 17:19:14 +00:00
|
|
|
# tokio
|
2023-01-03 14:15:51 +00:00
|
|
|
tokio = { version = "1.18", default-features = false, features = ["time"] }
|
2022-11-30 21:20:04 +00:00
|
|
|
tokio-tungstenite = { version = "0.18.0", default-features = false, features = [
|
2022-09-18 15:45:45 +00:00
|
|
|
"connect",
|
|
|
|
], optional = true }
|
2022-06-22 17:09:25 +00:00
|
|
|
|
2021-08-23 09:56:44 +00:00
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
|
|
ws_stream_wasm = "0.7"
|
|
|
|
wasm-bindgen = "0.2"
|
|
|
|
wasm-bindgen-futures = "0.4"
|
2022-09-18 15:45:45 +00:00
|
|
|
web-sys = { version = "0.3", features = ["console"] }
|
2021-08-23 09:56:44 +00:00
|
|
|
wasm-timer = "0.2"
|
|
|
|
# this is currently necessary for `wasm-timer::Delay` to work
|
|
|
|
parking_lot = { version = "0.11", features = ["wasm-bindgen"] }
|
2022-06-22 17:09:25 +00:00
|
|
|
# NOTE: this enables wasm compatibility for getrandom indirectly
|
|
|
|
getrandom = { version = "0.2", features = ["js"] }
|
2020-06-15 08:46:07 +00:00
|
|
|
|
2022-10-25 18:12:50 +00:00
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
|
|
|
|
tokio = { version = "1.18", default-features = false, features = ["rt", "macros", "time"] }
|
|
|
|
tempfile = "3.3.0"
|
|
|
|
|
2020-06-17 09:22:01 +00:00
|
|
|
[features]
|
2021-12-13 21:25:10 +00:00
|
|
|
default = ["ws", "rustls"]
|
2021-06-10 18:27:17 +00:00
|
|
|
celo = ["ethers-core/celo"]
|
2023-01-03 14:15:51 +00:00
|
|
|
|
2022-05-29 00:54:45 +00:00
|
|
|
ws = ["tokio-tungstenite", "futures-channel"]
|
2023-01-03 14:15:51 +00:00
|
|
|
ipc = ["tokio/io-util", "bytes", "futures-channel", "winapi"]
|
2021-07-05 11:32:17 +00:00
|
|
|
|
|
|
|
openssl = ["tokio-tungstenite/native-tls", "reqwest/native-tls"]
|
2021-12-19 14:56:54 +00:00
|
|
|
# we use the webpki roots so we can build static binaries w/o any root cert dependencies
|
|
|
|
# on the host
|
|
|
|
rustls = ["tokio-tungstenite/rustls-tls-webpki-roots", "reqwest/rustls-tls"]
|
2021-12-03 17:11:09 +00:00
|
|
|
dev-rpc = []
|