# 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 = "exc"
version = "0.1.0-alpha.4"
authors = ["Nouzan <clobraindie@outlook.com>"]
description = "Abstractions of exchanges."
keywords = [
    "exchange",
    "tower",
]
license = "MIT"
repository = "https://github.com/Nouzan/exc"

[dependencies.anyhow]
version = "1"

[dependencies.futures]
version = "0.3.21"

[dependencies.http]
version = "0.2.6"
optional = true

[dependencies.hyper]
version = "0.14"
optional = true

[dependencies.hyper-tls]
version = "0.5"
optional = true

[dependencies.indicator]
version = "0.2"

[dependencies.pin-project-lite]
version = "0.2.7"
optional = true

[dependencies.rust_decimal]
version = "1.23.1"

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

[dependencies.thiserror]
version = "1.0.30"

[dependencies.time]
version = "0.3.9"
features = ["serde-well-known"]

[dependencies.tokio]
version = "1.17.0"
optional = true

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

[dependencies.tokio-tungstenite]
version = "0.17.1"
features = ["native-tls"]
optional = true

[dependencies.tower]
version = "0.4.12"
features = ["util"]

[dependencies.tracing]
version = "0.1.34"

[features]
driven = [
    "tokio/sync",
    "tokio/rt",
    "tokio-stream",
    "pin-project-lite",
]
http = [
    "hyper/client",
    "hyper/http1",
    "hyper-tls",
    "dep:http",
]
websocket = [
    "tokio-tungstenite",
    "dep:http",
    "tokio/net",
]
