From b695cb5b6d8071ffa5af7fa330e324ca29976106 Mon Sep 17 00:00:00 2001 From: Elijah Voigt Date: Mon, 2 Mar 2026 21:46:24 -0800 Subject: [PATCH] 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/Cargo.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/quotesdb/Cargo.toml b/quotesdb/Cargo.toml index 4a38793..5f8126d 100644 --- a/quotesdb/Cargo.toml +++ b/quotesdb/Cargo.toml @@ -47,6 +47,18 @@ worker = { version = "0.5", features = ["d1"] } # Entropy source for WASM targets: bridges uuid (v4) and rand (OsRng) to # crypto.getRandomValues() via the Web Crypto API. 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 # OpenAPI spec. serde_yaml is only needed at build time — it never enters