From 891dce905fbabb71624ea4b860ab011678ae2ed0 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Mon, 5 Oct 2020 00:06:41 -0400 Subject: [PATCH] Slightly more structure --- _posts/2020-07-24-isomorphic-apps copy.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/_posts/2020-07-24-isomorphic-apps copy.md b/_posts/2020-07-24-isomorphic-apps copy.md index f4c66b6..ae6ebe8 100644 --- a/_posts/2020-07-24-isomorphic-apps copy.md +++ b/_posts/2020-07-24-isomorphic-apps copy.md @@ -9,6 +9,17 @@ tags: [rust, javascript, webassembly] In honor of Webpack 5.0 being released and dramatically easing integration of WebAssembly, it's time to revisit previous work done to use Electron as a backend for Rust GUI applications. +Structure: + +- Why did I want to do this?: Potential to use Electron+WASM as Rust GUI; not truly native, but at + least experimenting with. +- Problems: Hard to use ecosystem, crates don't compile, MIME types, async loading +- What changed?: Webpack makes WASM loading asynchronous and easy in v5, Chrome now sets MIME type +- Demonstration and screenshots +- Closing thoughts: is it worth it? + +--- + I wasn't expecting to write this, but it's 2020 and we could all use a win. When last I addressed using WASM + Electron to write desktop applications in Rust, there were ultimately too many issues to recommend this combination as feasible. Since then, there's been a lot of progress, and after