Cargo Features

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

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

sync default sync-ssl

Enables sync of websocket-base

Affects client::sync, websocket::receiver, websocket::sender, websocket::sync, server::sync, upgrade::sync, server::WsServer, upgrade::validate

sync-ssl default = native-tls, sync

Enables sync-ssl of websocket-base

async default async-ssl = bytes, futures, tokio-codec, tokio-io, tokio-reactor, tokio-tcp

Enables async of websocket-base

Affects client::r#async, websocket::codec, websocket::r#async, result::r#async, server::r#async, upgrade::r#async, server::WsServer, upgrade::validate

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

Enables async-ssl of websocket-base

nightly

Enables nightly of hyper ^0.10.6

hyper:

internal features used in CI

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.

futures async

Enables futures ^0.1

tokio-io async
tokio-tls async-ssl

Enables tokio-tls ^0.2.0

tokio-tcp async
tokio-codec async
tokio-reactor async
bytes async

Enables bytes ^0.4

native-tls async-ssl sync-ssl