-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
Cargo.toml
106 lines (96 loc) · 2.56 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[package]
name = "yew"
version = "0.19.3"
edition = "2021"
authors = [
"Denis Kolodin <deniskolodin@gmail.com>",
"Justin Starry <justin@yew.rs>",
]
repository = "https://github.com/yewstack/yew"
homepage = "https://github.com/yewstack/yew"
documentation = "https://docs.rs/yew/"
license = "MIT OR Apache-2.0"
keywords = ["web", "webasm", "javascript"]
categories = ["gui", "wasm", "web-programming"]
description = "A framework for making client-side single-page apps"
readme = "../../README.md"
rust-version = "1.56.0"
[dependencies]
console_error_panic_hook = "0.1"
gloo = "0.7"
gloo-utils = "0.1.0"
indexmap = { version = "1", features = ["std"] }
js-sys = "0.3"
slab = "0.4"
wasm-bindgen = "0.2"
yew-macro = { version = "^0.19.0", path = "../yew-macro" }
thiserror = "1.0"
futures = { version = "0.3", optional = true }
html-escape = { version = "0.2.9", optional = true }
base64ct = { version = "1.5.0", features = ["std"], optional = true }
bincode = { version = "1.3.3", optional = true }
serde = { version = "1", features = ["derive"] }
[dependencies.web-sys]
version = "0.3"
features = [
"AnimationEvent",
"Document",
"DragEvent",
"Element",
"ErrorEvent",
"Event",
"EventInit",
"EventTarget",
"FocusEvent",
"HtmlElement",
"HtmlInputElement",
"HtmlTextAreaElement",
"InputEvent",
"InputEventInit",
"KeyboardEvent",
"Location",
"MouseEvent",
"Node",
"NodeList",
"PointerEvent",
"ProgressEvent",
"ShadowRoot",
"Text",
"TouchEvent",
"TransitionEvent",
"UiEvent",
"WheelEvent",
"Window",
"HtmlScriptElement",
]
[target.'cfg(target_arch = "wasm32")'.dependencies]
# we move it here so no promise-based spawn_local can present for
# non-wasm32 targets.
wasm-bindgen-futures = "0.4"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tokio = { version = "1.15.0", features = ["rt"], optional = true }
[dev-dependencies]
wasm-bindgen-test = "0.3"
gloo = { version = "0.7", features = ["futures"] }
gloo-net = { version = "0.2", features = ["http"] }
wasm-bindgen-futures = "0.4"
rustversion = "1"
trybuild = "1"
[dev-dependencies.web-sys]
version = "0.3"
features = [
"ShadowRootInit",
"ShadowRootMode",
]
[features]
# TODO: `dep:` syntax only supported with MSRV 1.60, would be more precise
# tokio = ["dep:tokio"]
ssr = ["futures", "html-escape", "base64ct", "bincode"] # dep:html-escape
csr = []
hydration = ["csr", "bincode"]
default = []
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
tokio = { version = "1.15.0", features = ["full"] }
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "documenting"]