-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
65 lines (47 loc) · 1.76 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
[package]
name = "blog-ui"
version = "0.0.1"
edition = "2021"
license = "MIT"
[dependencies]
blog-generic = { git = "https://github.com/tikitko/blog-server.git", package = "blog-generic" }
log = "0.4"
async-trait = "0.1"
chrono = { version = "0.4", features = ["unstable-locales"] }
yew = { version = "0.21" }
yew-router = { version = "0.18" }
yew-hooks = { version = "0.3", optional = true }
wasm-bindgen-futures = { version = "0.4", optional = true }
wasm-bindgen = { version = "0.2", optional = true }
wasm-cookies = { version = "0.2", optional = true }
wasm-logger = { version = "0.2", optional = true }
web-sys = { version = "0.3", features = ["HtmlDocument","console","Document","HtmlElement","MouseEvent","DomRect","ScrollToOptions","ScrollBehavior","Element","MouseEvent","CssStyleDeclaration","MutationObserver","MutationObserverInit","Node","CustomEvent","HtmlImageElement"], optional = true }
gloo-history = "0.2"
gloo = { version = "0.11", optional = true }
gloo-net = { version = "0.5", optional = true }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
urlencoding = "2.1"
noneifempty = "0.1"
base64 = "0.21"
[features]
default = ["client"]
server = ["yew/ssr"]
client = ["yew/csr", "yew-hooks", "wasm-bindgen-futures", "wasm-bindgen", "wasm-cookies", "wasm-logger", "web-sys", "gloo", "gloo-net"]
hydration = ["client", "yew/hydration"]
yandex = []
telegram = []
[[bin]]
name = "blog_ui"
required-features = ["client"]
[profile.release]
# less code to include into binary
panic = 'abort'
# optimization over all codebase ( better optimization, slower build )
codegen-units = 1
# optimization for size ( more aggressive )
opt-level = 'z'
# optimization for size
# opt-level = 's'
# link time optimization using using whole-program analysis
lto = true