Cargo Features
[dependencies]
tokio-compat = { version = "0.1.6", default-features = false, features = ["blocking", "rt-current-thread", "rt-full", "sink"] }
- default = blocking, rt-full, sink
-
These default features are set whenever
tokio-compat
is added without
somewhere in the dependency tree.default-features = false - blocking default = rt-current-thread
-
Enables blocking of tokio ^0.2.4
- rt-current-thread blocking rt-full = tokio-current-thread-01, tokio-executor-01, tokio-reactor-01, tokio-timer-02
-
enables the compat runtimes.
Enables io-driver, rt-core, rt-util, stream, sync and time of tokio ^0.2.4
Affects
runtime::current_thread
,tokio-compat::runtime
… - rt-full default = pin-project-lite, rt-current-thread
-
Enables rt-threaded of tokio ^0.2.4
Affects
tokio-compat::runtime
… - sink default
-
Enables sink of futures-util
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.
- pin-project-lite rt-full
-
Enables pin-project-lite ^0.1
- tokio-timer-02 rt-current-thread?
-
Enables tokio-timer
runtime-only
- tokio-reactor-01 rt-current-thread?
-
Enables tokio-reactor
- tokio-executor-01 rt-current-thread?
-
Enables tokio-executor
- tokio-current-thread-01 rt-current-thread?
-
Enables tokio-current-thread