Cargo Features
[dependencies]
locker = { version = "0.4.3", default-features = false, features = ["async", "sync"] }
- default = async
-
The
async
feature is set by default wheneverlocker
is added without
somewhere in the dependency tree.default-features = false - async default = tokio
- sync
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.
- tokio async
-
Enables tokio ^0.2.13