Mini update
Happy new year all. Ok a bit late, but I’ve been busy
Wasm/Wasi
Right now I’m researching using Wasm/WASI in the browser. If you are interested in this you can follow progress here: GitHub - happybeing/svelte-wasi-with-rust: Svelte Rust/WASI in Browser Example. What is there right now just has a hello world app compiled to WASI, running in the browser, in a Svelte app.
I’ll be adding some Rust soon to see if I can access the same filesystem from JS and Rust in the browser (although you don’t have to use the browser as WASM runs on most platforms).
This is in aid of switching away from Go to Rust for Safe Git because Go has a 12MB runtime and in general Rust is the go to language for secure, reliable applications. So my aim is to compile Rust to WASI (target wasm32-wasi) and run it in the browser.
Over the holidays I was looking at wasm-git
which is libgit2
compiled to WASM using Emscripten (not WASI), and I had that running in the browser (after enhancing it a bit).
So I now have several options of the core git features, and will only have to write the git-bug
compatible stuff in Rust in the short term.