d419b81ef7
This makes it possible to embed long texts from Markdown files instead of dealing with writing the weird HTML-tags inside the yew macros, which will be much easier for content editors to deal with. Change-Id: Idc4e67404fcfe2b8d5083cf556df1c701ba17660 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8648 Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
39 lines
809 B
TOML
39 lines
809 B
TOML
[package]
|
|
version = "0.1.0"
|
|
name = "rih"
|
|
authors = [ "Vincent Ambo <tazjin@tvl.su>" ]
|
|
license = "Proprietary"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
fuzzy-matcher = "0.3.7"
|
|
gloo = "0.8"
|
|
rust_iso3166 = "0.1.10"
|
|
serde_json = "1.0"
|
|
serde_urlencoded = "*" # pinned by yew
|
|
yew = { version = "0.20", features = ["csr"] }
|
|
yew-router = "0.17"
|
|
rand = "0.8"
|
|
getrandom = { version = "0.2", features = ["js"] }
|
|
|
|
# needs to be in sync with nixpkgs
|
|
wasm-bindgen = "= 0.2.84"
|
|
|
|
[dependencies.serde]
|
|
version = "*" # pinned by yew
|
|
features = [ "derive" ]
|
|
|
|
[dependencies.web-sys]
|
|
version = "*" # pinned by yew
|
|
features = [ "HtmlDetailsElement" ]
|
|
|
|
[dependencies.static_markdown]
|
|
path = "./static-markdown"
|
|
|
|
[profile.release]
|
|
lto = true
|
|
opt-level = 'z'
|
|
codegen-units = 1
|
|
|
|
[package.metadata.wasm-pack.profile.release]
|
|
wasm-opt = ['-Os']
|