[package] name = "timer-kit" version = "0.1.1" edition = "2021" description = "A timer toolkit that is generic over the underlying timer implementation." license = "MIT/Apache-2.0" documentation = "https://docs.rs/timer-kit/" homepage = "https://github.com/minghuaw/timer-kit" repository = "https://github.com/minghuaw/timer-kit" keywords = ["sleep", "timeout", "interval", "delay", "async"] readme = "README.md" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"] [features] default = [ # "tokio", # "smol", # "wasm-timer", # "fluvio-wasm-timer", # "futures-timer" ] [dependencies] thiserror = "1.0" futures-util = "0.3" pin-project-lite = "0.2" slab = "0.4" [dev-dependencies] futures = "0.3" [target.'cfg(not(target_arch = "wasm32"))'.dependencies] # Optional dependencies tokio = { version = "1", features = ["time"], optional = true } smol = { version = "1", optional = true } futures-timer = { version = "3", optional = true } [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] tokio = { version = "1", features = ["time", "rt", "macros", "io-util"]} smol = { version = "1"} smol-potat = { version = "1", features = ["auto"] } futures-test = "0.3" [target.'cfg(target_arch = "wasm32")'.dependencies] # Optional dependencies wasm-timer = { version = "0.2", optional = true } fluvio-wasm-timer = { version = "0.2", optional = true } [target.'cfg(target_arch = "wasm32")'.dev-dependencies] wasm-timer = { version = "0.2" } fluvio-wasm-timer = { version = "0.2" } wasm-bindgen-test = "0.3"