Cargo Features

[dependencies]
websocket-base = { version = "0.26.5", default-features = false, features = ["sync", "sync-ssl", "async", "async-ssl"] }
default = async, async-ssl, sync, sync-ssl

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

sync default sync-ssl

Affects stream::sync, ws::receiver, ws::sender

sync-ssl default = native-tls, sync
async default async-ssl = bytes, futures, tokio-codec, tokio-io, tokio-tcp

Affects websocket-base::codec, result::r#async, stream::r#async, util::update_framed_codec

async-ssl default = async, native-tls, tokio-tls

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.

bytes async

Enables bytes ^0.4

futures async

Enables futures ^0.1

native-tls async-ssl sync-ssl
tokio-codec async
tokio-io async
tokio-tls async-ssl

Enables tokio-tls ^0.2.0

tokio-tcp async