feat(quotesdb): add Yew/Wasm UI dependencies to Cargo.toml

- Add yew 0.22 with csr feature for Rust/Wasm SPA frontend
- Add yew-router 0.19 for client-side routing
- Add gloo 0.11 for Web API utilities (timers, fetch, events)
- Add wasm-bindgen 0.2 matching Nix wasm-bindgen-cli 0.2.108
- Add wasm-bindgen-futures 0.4 for async fetch support
- Add web-sys 0.3 for raw DOM/browser API bindings
All UI deps scoped to wasm32 cfg target to avoid host build pollution

Closes ticket 93515e
quotesdb
Elijah Voigt 3 months ago
parent 7bd2bf4ed5
commit b695cb5b6d

@ -47,6 +47,18 @@ worker = { version = "0.5", features = ["d1"] }
# Entropy source for WASM targets: bridges uuid (v4) and rand (OsRng) to # Entropy source for WASM targets: bridges uuid (v4) and rand (OsRng) to
# crypto.getRandomValues() via the Web Crypto API. # crypto.getRandomValues() via the Web Crypto API.
getrandom = { version = "0.4", features = ["wasm_js"] } getrandom = { version = "0.4", features = ["wasm_js"] }
# Yew — Rust/Wasm frontend framework for building the SPA UI.
yew = { version = "0.22", features = ["csr"] }
# Yew Router — client-side routing for Yew SPAs.
yew-router = "0.19"
# Gloo — utility wrappers for Web APIs (timers, fetch, events, etc.).
gloo = "0.11"
# wasm-bindgen — Rust/Wasm JS interop; version must match wasm-bindgen-cli in Nix (0.2.108).
wasm-bindgen = "0.2"
# wasm-bindgen-futures — bridges Rust futures to JS Promises for async fetch.
wasm-bindgen-futures = "0.4"
# web-sys — raw browser DOM/Web API bindings.
web-sys = { version = "0.3", features = ["Window", "Document", "HtmlElement"] }
# Build-time dependencies for compile-time YAML-to-JSON conversion of the # Build-time dependencies for compile-time YAML-to-JSON conversion of the
# OpenAPI spec. serde_yaml is only needed at build time — it never enters # OpenAPI spec. serde_yaml is only needed at build time — it never enters

Loading…
Cancel
Save