Cargo Features

[dependencies]
tentacle = { version = "0.6.2", default-features = false, features = ["ws", "tls", "upnp", "secio-async-trait", "unstable", "openssl-vendored", "tokio-timer", "tokio-runtime", "async-timer", "async-runtime", "generic-timer", "wasm-timer", "parking_lot"] }
default = tokio-runtime, tokio-timer

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

ws = tokio-tungstenite
tls = tokio-rustls

Affects config::TlsConfig

upnp = igd
secio-async-trait

Enables async-trait of tentacle-secio

unstable
openssl-vendored

Enables openssl-vendored of tentacle-secio

tokio-timer default = tokio-runtime

Related to runtime

Enables time of tokio, tokio-timer of tokio-yamux

tokio-runtime default tokio-timer

Enables io-util, net and rt-multi-thread of tokio

async-timer = async-runtime
async-runtime async-timer? = async-io, async-std

Enables generic-timer of tokio-yamux

tokio-yamux:

generic timer, this means that yamux can run under any runtime the difference of AsyncRead/AsyncWrite can be converted by tokio-util

generic-timer = futures-timer

Enables generic-timer of tokio-yamux

wasm-timer = futures-timer

Enables wasm-bindgen of futures-timer and wasm of tokio-yamux

tokio-yamux:

use futures-timer's wasm feature

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.

parking_lot implicit feature

Enables parking_lot

parking_lot:

More compact and efficient implementations of the standard synchronization primitives

tokio-tungstenite ws?
futures-timer generic-timer? wasm-timer?
async-std async-runtime?
async-io async-runtime?

Enables async-io ^1

igd upnp?

Enables igd-next

upnp

tokio-rustls tls?

Enables tokio-rustls

tls