Cargo Features

[dependencies]
tokio-yamux = { version = "0.3.10", default-features = false, features = ["tokio-timer", "generic-timer", "wasm"] }
default = tokio-timer

The tokio-timer feature is set by default whenever tokio-yamux is added without default-features = false somewhere in the dependency tree.

tokio-timer default

use tokio timer

Enables time of tokio

generic-timer wasm? = futures-timer

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

wasm = generic-timer

use futures-timer's wasm feature

Enables wasm-bindgen of futures-timer

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-timer generic-timer? wasm?