# 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 = "deribit-websocket"
version = "0.3.1"
authors = ["Joaquin Bejar <jb@taunais.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "WebSocket client for Deribit trading platform real-time data"
homepage = "https://github.com/joaquinbejar/deribit-websocket"
readme = "README.md"
keywords = [
    "finance",
    "deribit",
    "trading",
    "websocket",
    "realtime",
]
categories = [
    "finance",
    "api-bindings",
    "web-programming::websocket",
]
license = "MIT"
repository = "https://github.com/joaquinbejar/deribit-websocket"

[features]
default = ["rustls-aws-lc"]
integration-tests = []
native-tls = ["tokio-tungstenite/native-tls"]
rustls-aws-lc = [
    "dep:rustls",
    "rustls/std",
    "rustls/tls12",
    "rustls/logging",
    "rustls/prefer-post-quantum",
    "rustls/aws-lc-rs",
    "tokio-tungstenite/rustls-tls-native-roots",
]
rustls-ring = [
    "dep:rustls",
    "rustls/std",
    "rustls/tls12",
    "rustls/logging",
    "rustls/ring",
    "tokio-tungstenite/rustls-tls-native-roots",
]

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

[[example]]
name = "account_operations"
path = "examples/account_operations.rs"

[[example]]
name = "advanced_subscriptions"
path = "examples/advanced_subscriptions.rs"

[[example]]
name = "basic_client"
path = "examples/basic_client.rs"

[[example]]
name = "callback_example"
path = "examples/callback_example.rs"

[[example]]
name = "cancel_on_disconnect"
path = "examples/cancel_on_disconnect.rs"

[[example]]
name = "expiration_price_subscription"
path = "examples/expiration_price_subscription.rs"

[[example]]
name = "mark_price_subscription"
path = "examples/mark_price_subscription.rs"

[[example]]
name = "mass_quote_advanced"
path = "examples/mass_quote_advanced.rs"

[[example]]
name = "mass_quote_basic"
path = "examples/mass_quote_basic.rs"

[[example]]
name = "mass_quote_options"
path = "examples/mass_quote_options.rs"

[[example]]
name = "new_channels_subscription"
path = "examples/new_channels_subscription.rs"

[[example]]
name = "perpetual_subscription"
path = "examples/perpetual_subscription.rs"

[[example]]
name = "portfolio_subscription"
path = "examples/portfolio_subscription.rs"

[[example]]
name = "position_management"
path = "examples/position_management.rs"

[[example]]
name = "price_index_subscription"
path = "examples/price_index_subscription.rs"

[[example]]
name = "quote_subscription"
path = "examples/quote_subscription.rs"

[[example]]
name = "session_management"
path = "examples/session_management.rs"

[[example]]
name = "trades_subscription"
path = "examples/trades_subscription.rs"

[[example]]
name = "trading_operations"
path = "examples/trading_operations.rs"

[[example]]
name = "unsubscribe_all"
path = "examples/unsubscribe_all.rs"

[[example]]
name = "user_orders_subscription"
path = "examples/user_orders_subscription.rs"

[[example]]
name = "user_trades_subscription"
path = "examples/user_trades_subscription.rs"

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

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

[dependencies.dotenv]
version = "0.15"

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

[dependencies.pretty-simple-display]
version = "0.1"

[dependencies.rustls]
version = "0.23"
optional = true
default-features = false

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

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

[dependencies.tokio-tungstenite]
version = "0.29"

[dependencies.tracing]
version = "0.1"

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

[dependencies.url]
version = "2.5"

[dev-dependencies.dotenv]
version = "0.15"

[dev-dependencies.serial_test]
version = "3.4"
