# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "pink-web3"
version = "0.19.3"
authors = [
    "Tomasz Drwięga <tomasz@parity.io>",
    "Kevin Wang <wy721@qq.com>",
]
description = "Ethereum JSON-RPC client for pink."
homepage = "https://github.com/Phala-Network/pink-web3"
documentation = "https://docs.rs/pink-web3"
readme = "README.md"
keywords = [
    "web3",
    "ethereum",
    "rpc",
    "client",
    "pink",
]
license = "MIT"
repository = "https://github.com/Phala-Network/pink-web3"
resolver = "2"

[dependencies.arrayvec]
version = "0.7.1"
features = ["serde"]
default-features = false

[dependencies.derive_more]
version = "0.99.1"

[dependencies.erased-serde]
version = "0.3"
features = ["alloc"]
default-features = false
package = "pink-erased-serde"

[dependencies.ethabi]
version = "17.2.0"
features = [
    "serde",
    "rlp",
]
default-features = false
package = "pink-ethabi"

[dependencies.ethereum-types]
version = "0.13.0"
features = [
    "rlp",
    "serialize",
]
default-features = false

[dependencies.futures]
version = "0.3.5"
features = ["alloc"]
default-features = false

[dependencies.hex]
version = "0.4"
features = ["alloc"]
default-features = false

[dependencies.ink_env]
version = "3"
optional = true
default-features = false

[dependencies.json]
version = "0.4.0"
default-features = false
package = "pink-json"

[dependencies.pin-project]
version = "1.0"

[dependencies.pink]
version = "0.1.18"
optional = true
default-features = false
package = "pink-extension"

[dependencies.rlp]
version = "0.5"
default-features = false

[dependencies.serde]
version = "1.0.90"
features = ["derive"]
default-features = false

[dependencies.tiny-keccak]
version = "2.0.1"
features = ["keccak"]

[dev-dependencies.env_logger]
version = "0.9"

[dev-dependencies.futures]
version = "0.3.5"

[dev-dependencies.hex-literal]
version = "0.3"

[dev-dependencies.jsonrpc-core]
version = "18.0.0"

[dev-dependencies.pink-extension-runtime]
version = "0.1.3"

[dev-dependencies.serde_json]
version = "1.0.85"

[features]
default = [
    "signing",
    "pink",
    "std",
]
pink = [
    "dep:pink",
    "ink_env",
]
signing = []
std = [
    "pink?/std",
    "ink_env?/std",
    "serde/std",
    "json/std",
    "ethabi/std",
]
test = []

[target."cfg(not(target_arch = \"wasm32\"))".dev-dependencies.hyper]
version = "0.14"
features = ["server"]
default-features = false

[target."cfg(not(target_arch = \"wasm32\"))".dev-dependencies.tokio]
version = "1.0"
features = ["full"]

[target."cfg(not(target_arch = \"wasm32\"))".dev-dependencies.tokio-stream]
version = "0.1"
features = ["net"]
