alloy-transport 0.5.4

Low-level Ethereum JSON-RPC transport abstraction
Documentation
[package]
name = "alloy-transport"
description = "Low-level Ethereum JSON-RPC transport abstraction"

version.workspace = true
edition.workspace = true
rust-version.workspace = true
authors.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
exclude.workspace = true

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[lints]
workspace = true

[dependencies]
alloy-json-rpc.workspace = true

base64.workspace = true
futures-util.workspace = true
futures-utils-wasm.workspace = true
serde_json = { workspace = true, features = ["raw_value"] }
serde.workspace = true
thiserror.workspace = true
tower.workspace = true
url.workspace = true
tracing.workspace = true

# non-WASM only
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tokio = { workspace = true, features = ["rt", "time"] }

# WASM only
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen-futures = { version = "0.4", optional = true }
wasmtimer.workspace = true

[features]
wasm-bindgen = ["dep:wasm-bindgen-futures"]