Cargo Features

[dependencies]
hop_leap = { version = "0.1.0", default-features = false, features = ["zlib", "native-tls", "rustls-tls-native-roots", "rustls-tls-webpki-roots"] }
default = rustls-tls-webpki-roots, zlib

default to webpki roots for easy cross compilation

zlib default = async-compression

compression reduces the size of the websocket payloads

native-tls

allow for multiple different TLS backends

Enables tokio-native-tls of async-tungstenite ^0.17

rustls-tls-native-roots

Enables tokio-rustls-native-certs of async-tungstenite ^0.17

rustls-tls-webpki-roots default

Enables tokio-rustls-webpki-roots of async-tungstenite ^0.17

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.

async-compression zlib

Enables async-compression ^0.3