[package] name = "async-sleep" version = "0.4.1" authors = ["vkill "] edition = "2021" description = "Async Sleep" license = "Apache-2.0 OR MIT" repository = "https://github.com/bk-rs/timer-rs" homepage = "https://github.com/bk-rs/timer-rs" documentation = "https://docs.rs/async-sleep" keywords = [] categories = [] readme = "README.md" [package.metadata.docs.rs] all-features = true [features] default = ["std", "timeout"] std = [] timeout = ["futures-util"] rw = ["futures-util/io", "std"] impl_tokio = ["tokio"] impl_async_timer = ["async-timer"] impl_async_io = ["async-io", "futures-util"] [dependencies] futures-util = { version = "0.3", default-features = false, features = ["alloc"], optional = true } tokio = { version = "1", default-features = false, features = ["time"], optional = true } async-timer = { version = "1.0.0-beta", default-features = false, optional = true } async-io = { version = "1", default-features = false, optional = true } [dev-dependencies] tokio = { version = "1", features = ["macros", "rt-multi-thread", "sync", "net"] } async-compat = { version = "0.2" } futures-lite = { version = "1" } [package.metadata.cargo-all-features] skip_optional_dependencies = true skip_feature_sets = [ ["impl_tokio", "impl_async_timer"], ["impl_tokio", "impl_async_io"], ["impl_async_timer", "impl_async_io"], # ["timeout", "impl_async_timer"], ["timeout", "impl_async_io"], # ["io", "impl_async_timer"], ["io", "impl_async_io"], ]