Cargo Features

[dependencies]
servo-websocket = { version = "0.21.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 servo-websocket is added without default-features = false somewhere in the dependency tree.

sync default sync-ssl

Affects ws::sender, ws::receiver

sync-ssl default = native-tls, sync
async default async-ssl = bytes, futures, tokio-core, tokio-io
async-ssl default = async, native-tls, tokio-tls
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-core async
tokio-io async
tokio-tls async-ssl

Enables tokio-tls ^0.1

bytes async

Enables bytes ^0.4

native-tls async-ssl sync-ssl

Enables native-tls ^0.1.2