Cargo Features

[dependencies]
mezzenger-websocket = { version = "0.2.5", default-features = false, features = ["native", "wasm", "warp"] }
default = native, wasm

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

native default = tokio-tungstenite
wasm default = js-utils, wasm-bindgen, web-sys

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.

warp not wasm32 implicit feature

Enables warp

warp:

serve the web at warp speeds

Affects mezzenger-websocket::warp

js-utils wasm32 wasm
tokio-tungstenite not wasm32 native

Enables tokio-tungstenite ^0.18.0

wasm-bindgen wasm32 wasm
web-sys wasm32 wasm