In the Tauri ecosystem, there is a lovely package called tauri-specta which assists in generating a webview / frontend client to match your Rust commands. Let's dig into this crate and see how it is implement.
There is a low-key end goal here where it would be interesting to enable this in the WASM space, and with wasm-bindgen. This calls back to our stream last week where we dived into wasm-bindgen and serde in the Cooklang crates. It would be a great experience to use specta there.
#live #rust #wasm #specta #tauri #cooklang
Chapters
00:00:00 Setting The Stage
00:04:30 Cooklang PR
00:16:35 What Is Specta-rs
00:35:43 `specta-wasm-bindgen`
00:39:27 `tauri-specta` Overview
00:56:31 Dig Into `tauri-specta` Integration
01:29:21 `tauri-specta` vs `specta-wasm-bindgen`
01:47:58 Dioxus Components With Shadcn
01:50:52 Next Time