[package]
name = "async-timer"
version = "1.0.0-beta.6"
authors = ["Douman <douman@gmx.se>"]
edition = "2018"
description = "Timers for Rust async story"
readme = "README.md"
repository = "https://github.com/DoumanAsh/async-timer"
license = "BSL-1.0"
keywords = ["timer", "async", "wasm"]
categories = ["asynchronous", "wasm", "no-std"]
include = [
"**/*.rs",
"**/*.c",
"Cargo.toml",
"README.md"
]
[features]
default = []
std = []
c_wrapper = ["cc"]
tokio02 = ["mio", "tokio_02", "nix", "std"]
tokio03 = ["tokio_03", "nix", "std"]
stream = ["futures-core"]
[dependencies]
error-code = "2"
[dependencies.futures-core]
version = "0.3"
optional = true
default-features = true
[target.'cfg(all(unix, not(any(target_os = "macos", target_os = "ios"))))'.dependencies]
os-sync = "0.3"
[target.'cfg(windows)'.dependencies.winapi]
version = "0.3"
features = ["threadpoolapiset"]
[target.'cfg(any(target_os = "macos", target_os = "ios", unix))'.dependencies]
libc = { version = "0.2.60", default-features = false }
mio = { version = "0.6", optional = true }
tokio_02 = { package = "tokio", version = "0.2", default-features = false, optional = true, features = ["io-driver"] }
tokio_03 = { package = "tokio", version = "0.3.5", default-features = false, optional = true, features = ["net"] }
[target.'cfg(any(target_os = "bitrig", target_os = "dragonfly", target_os = "freebsd", target_os = "ios", target_os = "macos", target_os = "netbsd", target_os = "openbsd"))'.dependencies]
nix = { version = "0.19", optional = true }
[target.'cfg(any(target_arch = "wasm32"))'.dependencies]
wasm-bindgen = "0.2"
[dev-dependencies]
tokio_02 = { package = "tokio", version = "0.2", features = ["macros", "rt-core"] }
tokio_03 = { package = "tokio", version = "0.3.2", default-features = false, features = ["macros", "rt"] }
[build-dependencies.cc]
version = "1"
optional = true