# 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 = "2024"
name = "eth-prices"
version = "0.0.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A library for fetching Ethereum prices."
readme = false
license = "LGPL-3.0"
repository = "https://github.com/v3xlabs/eth-prices/"

[features]
cli = []
default = []

[lib]
name = "eth_prices"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[bin]]
name = "eth-prices"
path = "src/main.rs"
required-features = ["cli"]

[dependencies.anyhow]
version = "1"

[dependencies.async-stream]
version = "0.3.6"

[dependencies.async-trait]
version = "0.1.89"

[dependencies.figment]
version = "0.10.19"
features = ["toml"]

[dependencies.futures]
version = "0"

[dependencies.petgraph]
version = "0.8.3"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tracing]
version = "0.1.44"
features = ["log"]
default-features = false

[dependencies.tracing-subscriber]
version = "0.3.23"

[dev-dependencies.tokio]
version = "1"
features = ["full"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.alloy]
version = "1"
features = [
    "contract",
    "provider-http",
    "reqwest-rustls-tls",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1"
features = ["full"]

[target.'cfg(target_arch = "wasm32")'.dependencies.alloy]
version = "1"
features = [
    "contract",
    "provider-http",
    "reqwest",
]
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.2"
features = ["js"]

[target.'cfg(target_arch = "wasm32")'.dependencies.serde-wasm-bindgen]
version = "0.6"

[target.'cfg(target_arch = "wasm32")'.dependencies.tsify]
version = "0.5.6"
features = ["js"]

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4"
