This repository has been archived by the owner on Jul 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Cargo.toml
91 lines (76 loc) · 2.24 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
[package]
name = "yew-router"
version = "0.11.0"
authors = ["Henry Zimmerman <zimhen7@gmail.com>", "Sascha Grunert <mail@saschagrunert.de>"]
edition = "2018"
license = "MIT/Apache-2.0"
readme = "README.md"
keywords = ["web", "yew", "router"]
categories = ["gui", "web-programming"]
description = "A router implementation for the Yew framework"
repository = "https://github.com/yewstack/yew_router"
[features]
default = ["core", "unit_alias"]
core = ["router", "components"] # Most everything
# TODO remove this
unit_alias = []
router = ["agent"] # The Router component
components = ["agent" ] # The button and anchor
agent = ["service"] # The RouteAgent
service = ["yew"] # The RouteService
std_web = [
"yew/std_web",
"stdweb"
]
web_sys = [
"yew/web_sys",
"gloo",
"js-sys",
"web-sys",
"wasm-bindgen"
]
[dependencies]
log = "0.4.8"
serde = { version = "1.0.104", features = ["derive"] }
yew = { version = "0.14.0", features = ["services", "agent"], optional = true }
#yew = {git = "https://github.com/yewstack/yew", branch = "web-sys", optional = true, features = ["services", "agent"]}
yew-router-route-parser = {path = "crates/yew_router_route_parser", version = "0.11.0"}
yew-router-macro = {path = "crates/yew_router_macro", version = "0.11.0"}
nom = "5.1.1"
serde_json = "1.0.48"
cfg-if = "0.1.10"
cfg-match = "0.2.1"
stdweb = { version = "0.4.20", optional = true }
gloo = { version = "0.2.0", optional = true }
js-sys = { version = "0.3.35", optional = true }
wasm-bindgen = { version = "0.2.58", optional = true }
[dependencies.web-sys]
version = "0.3"
optional = true
features = [
'History',
'Location',
'Window',
'PopStateEvent',
'MouseEvent',
'HtmlLinkElement'
]
# Compat with building yew with wasm-pack support.
[target.'cfg(all(target_arch = "wasm32", not(target_os="wasi"), not(cargo_web)))'.dependencies]
wasm-bindgen = "0.2.58"
[dev-dependencies]
uuid = "0.8.1"
[package.metadata.docs.rs]
features = ["web_sys", "core", "unit_alias"]
[workspace]
members = [
"crates/yew_router_route_parser",
"crates/yew_router_macro",
"examples/router_component",
"examples/guide",
"examples/switch",
"examples/minimal",
"examples/servers/warp",
"examples/servers/actix",
"tests/macro_test"
]