Cargo Features

[dependencies]
ezsockets = { version = "0.7.0", default-features = false, features = ["client", "native_client", "wasm_client", "server", "tungstenite", "axum", "tls", "native-tls", "rustls"] }
default = native_client, server

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

client native_client wasm_client? = tokio-tungstenite-wasm
native_client default = client, tokio-tungstenite

Enables rt of tokio

Affects client::connect

wasm_client = client, fragile
server default axum? tungstenite? = tokio-tungstenite, tokio-tungstenite-wasm

Enables rt of tokio

tokio:

Includes basic task execution capabilities

tungstenite = server

Affects server_runners::tungstenite

axum = axum-core, http-body, hyper, hyper-util, server, sha-1

Enables axum, alloc of futures-util

tls native-tls? rustls?
native-tls = tls, tokio-native-tls

Enables native-tls of tokio-tungstenite

rustls = tls, tokio-rustls

Enables rustls-tls-webpki-roots of tokio-tungstenite

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.

axum-core axum?
fragile wasm_client?
http-body axum?
hyper axum?

Enables hyper

Locked to axum version.

hyper-util axum?

Enables hyper-util

Locked to axum version.

sha-1 axum?
tokio-tungstenite native-tls? native_client rustls? server
tokio-tungstenite-wasm client? server
tokio-rustls rustls?
tokio-native-tls native-tls?