Cargo Features
[dependencies]
async-local = { version = "6.0.1", default-features = false, features = ["rt", "rt-multi-thread", "compat"] }
- default = rt
-
The
rt
feature is set by default wheneverasync-local
is added without
somewhere in the dependency tree.default-features = false - rt default rt-multi-thread?
-
Enables tokio
Affects
async-local::AsyncLocal.with_blocking
… - rt-multi-thread = rt
-
Enable Tokio multi_thread runtime flavor
Enables tokio, rt-multi-thread of derive-async-local
- compat
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.