-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
43 lines (38 loc) · 1.14 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
[package]
name = "js-utils"
version = "0.1.5"
authors = ["zduny <dzduniak@gmail.com>"]
edition = "2021"
description = "Useful utilities to make development of browser-targeted Rust applications slightly less painful."
license = "Apache-2.0"
repository = "https://github.com/zduny/js-utils"
documentation = "https://docs.rs/js-utils/"
keywords = ["js", "javascript", "wasm", "browser", "web"]
[features]
default = ["panic_hook", "spawn", "sleep", "queue", "event"]
spawn = ["futures", "wasm-bindgen-futures"]
sleep = ["futures", "zduny-wasm-timer"]
queue = ["futures"]
event = ["futures"]
panic_hook = ["console_error_panic_hook"]
[dependencies]
wasm-bindgen = "0.2.95"
console_error_panic_hook = { version = "0.1.7", optional = true }
futures = { version = "0.3.31", optional = true }
wasm-bindgen-futures = { version = "0.4.45", optional = true }
zduny-wasm-timer = { version = "0.2.8", optional = true }
[dependencies.web-sys]
version = "0.3.72"
features = [
"Window",
"Document",
"HtmlElement",
]
[dev-dependencies]
wasm-bindgen = "0.2.95"
wasm-bindgen-test = "0.3.45"
[dev-dependencies.web-sys]
version = "0.3.72"
features = [
"MouseEvent"
]