Cargo Features

[dependencies]
cbsk_socket_tokio = { version = "2.0.5", default-features = false, features = ["tcp_server", "tcp_client", "ws_server", "ws_client", "debug_mode"] }
default = tcp_client

The tcp_client feature is set by default whenever cbsk_socket_tokio is added without default-features = false somewhere in the dependency tree.

tcp_server

Enables async-trait of cbsk_base, tcp_server of cbsk_socket

Affects tcp::server, cbsk_socket_tokio::tcp

tcp_client default

Enables async-trait of cbsk_base, tcp_client of cbsk_socket

Affects tcp::client, cbsk_socket_tokio::tcp

ws_server = futures-util, tokio-tungstenite

Enables macro of cbsk_base, ws_server of cbsk_socket

Affects ws::server, cbsk_socket_tokio::ws

ws_client = futures-util, tokio-tungstenite

Enables macro of cbsk_base, ws_client of cbsk_socket

Affects ws::client, cbsk_socket_tokio::ws

debug_mode

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

cbsk_socket tcp_client tcp_server? ws_client? ws_server?
tokio-tungstenite ws_client? ws_server?

Enables tokio-tungstenite ^0.23.1

ws crates

futures-util ws_client? ws_server?