2020-05-26 09:37:31 +00:00
|
|
|
[package]
|
|
|
|
name = "ethers-providers"
|
2022-09-18 15:45:45 +00:00
|
|
|
authors = ["Georgios Konstantopoulos <me@gakonst.com>"]
|
2023-03-16 19:28:35 +00:00
|
|
|
readme = "README.md"
|
|
|
|
description = "Clients for interacting with Ethereum nodes"
|
|
|
|
|
|
|
|
version.workspace = true
|
|
|
|
edition.workspace = true
|
|
|
|
rust-version.workspace = true
|
|
|
|
license.workspace = true
|
|
|
|
documentation.workspace = true
|
|
|
|
repository.workspace = true
|
|
|
|
homepage.workspace = true
|
|
|
|
categories.workspace = true
|
|
|
|
keywords.workspace = true
|
|
|
|
exclude.workspace = true
|
2020-05-26 09:37:31 +00:00
|
|
|
|
2020-06-21 07:17:11 +00:00
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|
2023-03-08 22:58:44 +00:00
|
|
|
rustc-args = ["--cfg", "docsrs"]
|
2020-06-21 07:17:11 +00:00
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
|
2023-03-16 19:28:35 +00:00
|
|
|
[package.metadata.playground]
|
|
|
|
all-features = true
|
|
|
|
|
2020-05-26 09:37:31 +00:00
|
|
|
[dependencies]
|
2023-03-16 19:28:35 +00:00
|
|
|
ethers-core.workspace = true
|
|
|
|
|
|
|
|
serde.workspace = true
|
|
|
|
serde_json = { workspace = true, features = ["raw_value"] }
|
|
|
|
|
|
|
|
http = "0.2"
|
|
|
|
reqwest = { workspace = true, features = ["json"] }
|
|
|
|
url.workspace = true
|
2023-01-09 05:16:11 +00:00
|
|
|
base64 = "0.21"
|
2020-05-27 11:32:44 +00:00
|
|
|
|
2023-03-16 19:28:35 +00:00
|
|
|
async-trait.workspace = true
|
|
|
|
hex.workspace = true
|
|
|
|
thiserror.workspace = true
|
|
|
|
auto_impl.workspace = true
|
|
|
|
once_cell.workspace = true
|
|
|
|
bytes.workspace = true
|
|
|
|
instant.workspace = true
|
|
|
|
hashers = "1.0"
|
|
|
|
|
2020-06-15 08:46:07 +00:00
|
|
|
# required for implementing stream on the filters
|
2023-03-16 19:28:35 +00:00
|
|
|
futures-core.workspace = true
|
|
|
|
futures-util.workspace = true
|
|
|
|
futures-timer.workspace = true
|
|
|
|
futures-channel = { workspace = true, optional = true }
|
|
|
|
pin-project.workspace = true
|
2020-06-21 07:17:11 +00:00
|
|
|
|
2022-11-30 21:22:44 +00:00
|
|
|
# peer-related admin namespace
|
2023-03-13 19:58:59 +00:00
|
|
|
enr = { version = "0.8.0", default-features = false, features = ["k256", "serde"] }
|
2022-11-30 21:22:44 +00:00
|
|
|
|
2020-12-25 00:17:21 +00:00
|
|
|
# tracing
|
2023-03-16 19:28:35 +00:00
|
|
|
tracing = { workspace = true, features = ["attributes"] }
|
|
|
|
tracing-futures = { workspace = true, features = ["std-future"] }
|
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-03-16 19:28:35 +00:00
|
|
|
tokio = { workspace = true, features = ["time"] }
|
|
|
|
tokio-tungstenite = { workspace = true, features = ["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"] }
|
2022-06-22 17:09:25 +00:00
|
|
|
# NOTE: this enables wasm compatibility for getrandom indirectly
|
2023-03-16 19:28:35 +00:00
|
|
|
getrandom.workspace = true
|
2020-06-15 08:46:07 +00:00
|
|
|
|
2022-10-25 18:12:50 +00:00
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
|
2023-03-21 22:19:16 +00:00
|
|
|
tokio = { workspace = true, features = ["rt-multi-thread", "macros", "time"] }
|
2023-02-27 20:03:47 +00:00
|
|
|
tempfile = "3.4.0"
|
2022-10-25 18:12:50 +00:00
|
|
|
|
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-03-01 01:25:59 +00:00
|
|
|
legacy-ws = ["ws"]
|
2023-03-16 19:28:35 +00:00
|
|
|
ipc = ["tokio/io-util", "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 = []
|
2023-03-01 01:25:59 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
tracing-test = { version = "0.2.4", features = ["no-env-filter"] }
|