# 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 = "cbsk_socket"
version = "0.3.15"
authors = ["The cbsk developers"]
description = "cbsk_socket is a socket callback tool"
readme = "Readme.md"
keywords = [
    "socket",
    "tcp",
    "ws",
    "websocket",
    "callback",
]
categories = [
    "data-structures",
    "asynchronous",
]
license = "MIT/Apache-2.0"
repository = "https://github.com/lifeRobot/cbsk/tree/master/libs/cbsk_socket"

[dependencies.cbsk_base]
version = "0.1.7"
features = [
    "tokio_full",
    "serde_derive_json",
    "anyhow",
    "log",
]

[dependencies.cbsk_mut_data]
version = "0.1.4"
features = ["obj"]
default-features = false

[dependencies.fastdate]
version = "0.3.28"

[dependencies.futures-util]
version = "0.3.30"
optional = true
default-features = false

[dependencies.tokio-tungstenite]
version = "0.21.0"
optional = true

[features]
tcp_client = []
tcp_server = []
ws_client = [
    "tokio-tungstenite",
    "futures-util",
    "cbsk_base/macro",
]
ws_server = [
    "tokio-tungstenite",
    "futures-util",
    "cbsk_base/macro",
]
