# 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"
rust-version = "1.70"
name = "kraky"
version = "0.1.2"
authors = ["Sarp Tekin <sarp@kraky.dev>"]
build = false
exclude = [
    "*.csv",
    ".env*",
    "!.env.example",
    "PRESENTATION*.md",
    "PROJECT_SUMMARY.md",
    "VIDEO_RECORDING_GUIDE.md",
    "SUBMISSION*.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lightweight, production-ready Rust SDK for Kraken Exchange WebSocket API v2 with unique orderbook imbalance detection and WebSocket trading"
homepage = "https://github.com/sarptekin/kraky"
documentation = "https://docs.rs/kraky"
readme = "README.md"
keywords = [
    "kraken",
    "exchange",
    "websocket",
    "trading",
    "crypto",
]
categories = [
    "api-bindings",
    "asynchronous",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/sarptekin/kraky"

[features]
analytics = ["orderbook"]
auth = [
    "dep:hmac",
    "dep:sha2",
    "dep:base64",
]
checksum = [
    "orderbook",
    "dep:crc32fast",
]
default = [
    "reconnect",
    "events",
    "orderbook",
]
events = []
full = [
    "market-data",
    "analytics",
    "reconnect",
    "events",
    "simd",
    "checksum",
    "telegram-alerts",
    "private",
    "trading",
]
market-data = [
    "orderbook",
    "trades",
    "ticker",
    "ohlc",
]
ohlc = []
orderbook = []
private = ["auth"]
reconnect = []
simd = ["dep:simd-json"]
telegram = ["dep:teloxide"]
telegram-alerts = [
    "telegram",
    "analytics",
    "ticker",
]
ticker = []
trades = []
trading = [
    "auth",
    "private",
]

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

[[example]]
name = "auth_example"
path = "examples/auth_example.rs"
required-features = ["private"]

[[example]]
name = "benchmark"
path = "examples/benchmark.rs"
required-features = [
    "orderbook",
    "trades",
]

[[example]]
name = "demo"
path = "examples/demo.rs"
required-features = ["full"]

[[example]]
name = "export_multi_csv"
path = "examples/export_multi_csv.rs"
required-features = ["analytics"]

[[example]]
name = "export_to_csv"
path = "examples/export_to_csv.rs"
required-features = [
    "trades",
    "analytics",
]

[[example]]
name = "liquidity_monitor"
path = "examples/liquidity_monitor.rs"
required-features = ["analytics"]

[[example]]
name = "multi_pair_monitor"
path = "examples/multi_pair_monitor.rs"
required-features = [
    "market-data",
    "analytics",
]

[[example]]
name = "multi_subscribe"
path = "examples/multi_subscribe.rs"
required-features = [
    "trades",
    "ticker",
]

[[example]]
name = "ohlc"
path = "examples/ohlc.rs"
required-features = ["ohlc"]

[[example]]
name = "orderbook"
path = "examples/orderbook.rs"
required-features = ["orderbook"]

[[example]]
name = "simple_price_alerts"
path = "examples/simple_price_alerts.rs"
required-features = ["telegram-alerts"]

[[example]]
name = "telegram_imbalance_bot"
path = "examples/telegram_imbalance_bot.rs"
required-features = ["telegram-alerts"]

[[example]]
name = "telegram_private_alerts"
path = "examples/telegram_private_alerts.rs"
required-features = [
    "telegram",
    "private",
]

[[example]]
name = "telegram_trading_bot"
path = "examples/telegram_trading_bot.rs"
required-features = [
    "telegram",
    "trading",
]

[[example]]
name = "ticker"
path = "examples/ticker.rs"
required-features = ["ticker"]

[[example]]
name = "trades"
path = "examples/trades.rs"
required-features = ["trades"]

[[example]]
name = "whale_watcher"
path = "examples/whale_watcher.rs"
required-features = ["telegram-alerts"]

[dependencies.base64]
version = "0.22"
optional = true

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

[dependencies.crc32fast]
version = "1.3"
optional = true

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

[dependencies.hmac]
version = "0.12"
optional = true

[dependencies.native-tls]
version = "0.2"

[dependencies.parking_lot]
version = "0.12"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"
optional = true

[dependencies.simd-json]
version = "0.14"
optional = true

[dependencies.teloxide]
version = "0.12"
features = ["macros"]
optional = true

[dependencies.thiserror]
version = "1.0"

[dependencies.tokio]
version = "1.35"
features = [
    "rt-multi-thread",
    "net",
    "sync",
    "time",
    "macros",
]

[dependencies.tokio-tungstenite]
version = "0.21"
features = ["native-tls"]

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2.5"

[dependencies.uuid]
version = "1.6"
features = [
    "v4",
    "serde",
]

[dev-dependencies.anyhow]
version = "1.0"

[dev-dependencies.tokio-test]
version = "0.4"

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