Cargo Features

[dependencies]
shdp = { version = "1.1.7", default-features = false, features = ["serde", "tcp-server", "tcp-client", "ws-server", "ws-client", "wss-server", "wss-client", "tls-client", "tls-server", "debug"] }
default = debug, serde, tcp-client, tls-client, tls-server, ws-client, ws-server, wss-client, wss-server

These default features are set whenever shdp is added without default-features = false somewhere in the dependency tree.

serde default

Enables serde and serde_json

Affects v1::c0x0005, v1::r0x0006, v1::r0x0005

tcp-server tls-server = async-std, ego-tree, html-minifier, scraper

Enables tokio

Affects prelude::tcp, server::tcp_server_opening_and_closing, prelude::server, protocol::server, client::tcp_client_connection

tcp-client default tls-client

Enables tokio

Affects prelude::client, protocol::client, client::tcp_client_connection

ws-server default wss-server = async-std, ego-tree, futures, html-minifier, scraper, tungstenite

Enables async-tungstenite ^0.25.1 and tokio

Affects prelude::ws, server::ws_server_opening_and_closing, prelude::server, protocol::server, client::ws_client_connection

ws-client default wss-client = tungstenite

Enables tokio

Affects prelude::ws, prelude::client, protocol::client, client::ws_client_connection

wss-server default = async-tls, rustls, rustls-pemfile, ws-server

Affects prelude::wss, prelude::utils.Certificate

wss-client default = openssl, ws-client

Affects prelude::wss, prelude::utils.Certificate

tls-client default = openssl, tcp-client

Enables tokio-openssl

Affects prelude::utils.Certificate

tls-server default = openssl, tcp-server

Enables tokio-openssl

Affects prelude::tls, prelude::utils.Certificate

debug default

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.

async-std tcp-server? ws-server
async-tls wss-server

Enables async-tls ^0.12.0

ego-tree tcp-server? ws-server

Enables ego-tree ^0.6.2

futures ws-server
html-minifier tcp-server? ws-server
openssl tls-client tls-server wss-client
rustls wss-server

Enables rustls ^0.20.6

rustls-pemfile wss-server

Enables rustls-pemfile ^1.0

scraper tcp-server? ws-server

Enables scraper ^0.19.0

tungstenite ws-client ws-server

Enables tungstenite ^0.21.0