[package] name = "async-timer" version = "1.0.0-beta.15" authors = ["Douman "] 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 = [] # Enables std usage std = ["error-code/std"] # Enables C API wrapper for platform code. c_wrapper = ["cc"] # Enables usage of tokio 1.0 tokio1 = ["tokio_1", "std"] [dependencies] error-code = "3" [target.'cfg(any(target_os = "macos", target_os = "ios", windows, unix))'.dependencies] libc = { version = "0.2.60", default-features = false } tokio_1 = { package = "tokio", version = "1.35", default-features = false, optional = true, features = ["net"] } [target.'cfg(any(target_arch = "wasm32"))'.dependencies] wasm-bindgen = "0.2" web-time = "1.1" [dev-dependencies] tokio_1 = { package = "tokio", version = "1.35", default-features = false, features = ["macros", "rt"] } [build-dependencies.cc] version = "1" optional = true