Convert `runJavascript` to use QuickJS
- [ ] Hack something together quickly to see what breaks
See https://github.com/justjake/quickjs-emscripten
I would heartily recommend going with rquickjs instead. Compiles really well to Wasm, and Amazon’s llrt has all kinds of plugins to provide the standard globals like TextEncoder, crypto.subtle etc
OOoooooh. How do I take a rust crate and turn it into an npm package?
https://developer.mozilla.org/en-US/docs/WebAssembly/Rust_to_Wasm
Easiest way: wasm-pack. It even generates a package.json and stuff.
And for all the low-level questions and needs you might have about compiling Rust to WebAssembly, I'll shamelessly self-plug my blog post.
Thank you so much. At this point, my next step is to get something together very quickly to run existing runJavascript configs through and see what breaks.