[package]
name = "cbsk_socket"
version = "0.3.15"
edition = "2021"
description = "cbsk_socket is a socket callback tool"
readme = "Readme.md"
authors = ["The cbsk developers"]
license = "MIT/Apache-2.0"
categories = ["data-structures", "asynchronous"]
keywords = ["socket", "tcp", "ws", "websocket", "callback"]
repository = "https://github.com/lifeRobot/cbsk/tree/master/libs/cbsk_socket"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
cbsk_base = { version = "0.1.7", features = ["tokio_full", "serde_derive_json", "anyhow", "log"] }
cbsk_mut_data = { version = "0.1.4", default-features = false, features = ["obj"] }
fastdate = "0.3.28"

# ws crates
tokio-tungstenite = { version = "0.21.0", optional = true }
futures-util = { version = "0.3.30", default-features = false, optional = true }

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