Cargo Features
[dependencies]
hannibal = { version = "0.12.2", default-features = false, features = ["tokio_runtime", "async_runtime", "tokio", "runtime", "smol", "async-std"] }
- default = tokio_runtime
-
The
tokio_runtime
feature is set by default wheneverhannibal
is added without
somewhere in the dependency tree.default-features = false - tokio_runtime default = runtime
-
Enables tokio of async-global-executor and tokio
TODO: make tokio optional
Affects
runtime::block_on
… - async_runtime = runtime
-
Enables async-global-executor
Affects
runtime::sleep
… - tokio
-
Enables tokio, tokio of async-global-executor
- runtime async_runtime? tokio_runtime