Cargo Features

[dependencies]
cbsk_socket = { version = "1.1.0", default-features = false, features = ["tokio_tcp", "system_tcp", "tcp_server", "tcp_client", "ws_server", "ws_client"] }
default = tokio_tcp

default use tokio_runtime tcp and tokio_runtime runtime

tokio_tcp default

the tcp use tokio_runtime tcp or system tcp, default is system tcp

Enables tokio_full of cbsk_base

Affects tcp::tokio, common::r#async, server::r#async

system_tcp

Enables tokio_full of cbsk_base

Affects tcp::system, common::r#async, server::r#async

tcp_server

Enables async-trait of cbsk_base

Affects common::server, system::server, tokio::server, cbsk_socket::tcp

tcp_client

Enables async-trait and macro of cbsk_base

Affects common::client, system::client, tokio::client, config::re_conn, cbsk_socket::tcp

ws_server = futures-util, tokio-tungstenite

Enables macro and tokio_full of cbsk_base

Affects ws::server, cbsk_socket::ws

ws_client = futures-util, tokio-tungstenite

Enables macro and tokio_full of cbsk_base

Affects ws::client, config::re_conn, cbsk_socket::ws

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.

tokio-tungstenite ws_client? ws_server?

Enables tokio-tungstenite

ws crates

futures-util ws_client? ws_server?