Cargo Features
[dependencies]
async-sleep = { version = "0.4.1", default-features = false, features = ["std", "timeout", "rw", "impl_tokio", "impl_async_timer", "impl_async_io"] }
- default = std, timeout
-
These default features are set whenever
async-sleep
is added without
somewhere in the dependency tree.default-features = false - std default rw?
-
Affects
sleep::sleep_until
,timeout::internal_timeout_at
,timeout::timeout_at
… - timeout default = futures-util
-
Affects
async-sleep::timeout
… - rw = std
-
Enables io of futures-util
Affects
async-sleep::rw
… - impl_tokio = tokio
-
Affects
async-sleep::impl_tokio
… - impl_async_timer = async-timer
-
Affects
async-sleep::impl_async_timer
… - impl_async_io = async-io, futures-util
-
Affects
async-sleep::impl_async_io
…
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-util impl_async_io? rw? timeout
-
Affects
async-sleep::SleepbleWaitBoxFuture
… - tokio impl_tokio?
- async-timer impl_async_timer?
- async-io impl_async_io?
-
Enables async-io ^1