-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCargo.toml
76 lines (64 loc) · 1.9 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
[package]
name = "hirola"
version = "0.4.0"
authors = ["Geoffrey Mureithi <[email protected]>"]
description = "Hirola is an un-opinionated web framework that is focused on simplicity and predictability"
repository = "https://github.com/geofmureithi/hirola"
documentation = "https://hirola-docs.vercel.app"
readme = "README.md"
license = "MIT OR Apache-2.0"
keywords = ["wasm", "html", "dom", "web"]
edition = "2021"
[dependencies]
hirola-core = { path = "crates/hirola-core", version = "0.4.0" }
hirola-macros = { path = "crates/hirola-macros", version = "0.4.0" }
hirola-dom = { path = "crates/hirola-dom", version = "0.4.0", optional = true }
hirola-ssr = { path = "crates/hirola-ssr", version = "0.4.0", optional = true }
[features]
default = ["dom"]
## Enables browser based rendering including websys and wasmbindgen
dom = ["hirola-dom"]
## Enables server side rendering
ssr = ["hirola-ssr"]
docsrs = ["document-features"]
[dev-dependencies]
wasm-bindgen-test = "0.3.42"
wasm-bindgen = { version = "0.2.92" }
hirola = { path = "." }
futures-util = "0.3"
web-sys = { version = "0.3", features = ["Document", "Node", "Element"] }
[workspace]
members = [
"crates/hirola-core",
"crates/hirola-macros",
"crates/hirola-form",
"crates/hirola-kit",
"crates/hirola-ssr",
"crates/hirola-dom",
"examples/axum",
"examples/counter",
"examples/todo-mvc",
"examples/canvas",
"examples/fake-api",
"examples/chartjs",
"examples/x-for",
"examples/effects",
"examples/form",
"examples/docs",
]
[dependencies.document-features]
version = "0.2"
optional = true
[package.metadata.docs.rs]
# defines the configuration attribute `docsrs`
rustdoc-args = ["--cfg", "docsrs"]
default-target = "wasm32-unknown-unknown"
features = ["docsrs"]
[profile.release]
opt-level = "z"
overflow-checks = false
debug = 0
strip = "symbols"
debug-assertions = false
codegen-units = 1
lto = true