[dependencies.futures]
optional = true
version = "^0.3"
[dependencies.js-sys]
version = "^0.3"
[dependencies.parking_lot]
optional = true
version = "^0.12"
[dependencies.pin-utils]
optional = true
version = "^0.1"
[dependencies.serde_crate]
default-features = false
optional = true
package = "serde"
version = "^1.0"
[dependencies.slab]
optional = true
version = "^0.4"
[dependencies.wasm-bindgen]
version = "^0.2"
[dev-dependencies.serde_json]
version = "^1.0"
[dev-dependencies.wasm-bindgen-futures]
version = "0.4"
[dev-dependencies.wasm-bindgen-test]
version = "0.3.0"
[features]
default = ["tokio", "tokio-util"]
serde = ["serde_crate"]
tokio = ["futures", "parking_lot", "pin-utils"]
tokio-test-util = ["tokio"]
tokio-util = ["slab", "tokio"]
[lib]
name = "wasmtimer"
path = "src/lib.rs"
[package]
authors = ["WhizSid <whizsid@aol.com>", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = false
description = "Time utils from std::time, tokio::time and tokio_util::time on WASM targets"
edition = "2021"
keywords = ["timer", "wasm", "tokio", "browser", "delay-queue"]
license = "MIT"
name = "wasmtimer"
readme = "README.md"
repository = "https://github.com/whizsid/wasmtimer-rs"
version = "0.2.1"
[[test]]
name = "web"
path = "tests/web.rs"