# 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"
rust-version = "1.90"
name = "rangebar-providers"
version = "12.38.1"
authors = ["Terry Li <terry@eonlabs.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Data providers for rangebar: Binance, Exness"
homepage = "https://github.com/terrylica/rangebar"
documentation = "https://docs.rs/rangebar-providers"
readme = "README.md"
keywords = [
    "binance",
    "exness",
    "trading",
    "data-provider",
]
categories = [
    "finance",
    "api-bindings",
]
license = "MIT"
repository = "https://github.com/terrylica/rangebar"
resolver = "2"

[features]
all-providers = [
    "binance",
    "exness",
]
binance = [
    "tokio-tungstenite",
    "tokio-stream",
    "tokio-util",
    "futures-util",
    "socket2",
]
default = ["binance"]
exness = []

[lib]
name = "rangebar_providers"
path = "src/lib.rs"

[[test]]
name = "fromid_integration"
path = "tests/fromid_integration.rs"

[[test]]
name = "rest_ws_junction_integration"
path = "tests/rest_ws_junction_integration.rs"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.csv]
version = "1.3"

[dependencies.futures-util]
version = "0.3"
optional = true

[dependencies.rangebar-core]
version = "12.30.0"

[dependencies.reqwest]
version = "0.12"
features = [
    "stream",
    "rustls-tls",
    "json",
]
default-features = false

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

[dependencies.serde_json]
version = "1.0"
features = ["arbitrary_precision"]

[dependencies.sha2]
version = "0.10"

[dependencies.socket2]
version = "0.5"
optional = true

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.0"
features = ["full"]

[dependencies.tokio-stream]
version = "0.1"
optional = true

[dependencies.tokio-tungstenite]
version = "0.23"
features = [
    "connect",
    "rustls-tls-native-roots",
]
optional = true
default-features = false

[dependencies.tokio-util]
version = "0.7"
features = ["rt"]
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.zip]
version = "2.2"

[dev-dependencies.chrono]
version = "0.4"
features = ["serde"]

[dev-dependencies.rangebar-core]
version = "12.30.0"

[dev-dependencies.serde_json]
version = "1.0"
features = ["arbitrary_precision"]

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

[dev-dependencies.tokio-util]
version = "0.7"
features = ["rt"]

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "json",
]
