-
Notifications
You must be signed in to change notification settings - Fork 4
/
Cargo.toml
37 lines (32 loc) · 1.08 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[package]
name = "wasmtimer"
edition = "2021"
description = "Time utils from std::time, tokio::time and tokio_util::time on WASM targets"
version = "0.4.0"
authors = ["WhizSid <whizsid@aol.com>", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
license = "MIT"
repository = "https://github.com/whizsid/wasmtimer-rs"
keywords = ["timer", "wasm", "tokio", "browser", "delay-queue"]
[dependencies]
futures = {version= "^0.3", optional = true}
parking_lot = {version= "^0.12", optional = true }
pin-utils = {version = "^0.1", optional = true }
js-sys = "^0.3"
wasm-bindgen = "^0.2"
slab = { version = "^0.4", optional = true }
serde_crate = { package = "serde" , version = "^1.0", optional = true, default-features = false }
[features]
default = ["tokio", "tokio-util"]
tokio-test-util = ["tokio"]
tokio-util = ["slab", "tokio"]
tokio = ["futures", "parking_lot", "pin-utils"]
serde = ["serde_crate"]
[dev-dependencies]
wasm-bindgen-test = "0.3.0"
wasm-bindgen-futures = "0.4"
serde_json = "^1.0"
[lib]
crate-type = ["cdylib", "rlib"]
[workspace]
members = ["examples/nodejs-example"]
resolver = "2"