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
somewhere in the dependency tree.default-features = false - 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