-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
57 lines (48 loc) · 1.62 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[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"