You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to make the WASM version of libgit, work with the git2-rs bindings for Rust.
Rust is much easier to work with and has better support for WASM via wasm-bindgen. Having support for Rust, would make creating an in-browser git CLI using wasm-git for instance much easier, without being limited to what's in the libgit2 examples/ written in C
Wasm-git is compiled with emscripten, and also using the file system provided by emscripten. In order to integrate with Rust I think probably the best approach would be similar to how I've integrated quickjs with Rust in this project here: https://github.com/petersalomonsen/quickjs-rust-near
In that project quickjs is also compiled with emscripten, and when compiling to WebAssembly from Rust, the emscripten static libraries are linked in.
I'm not sure how this would work with the git2-rs bindings though, but it should at least be possible to interact with the c interfaces of libgit2 from Rust with such an approach.
Would it be possible to make the WASM version of libgit, work with the
git2-rs
bindings for Rust.Rust is much easier to work with and has better support for WASM via wasm-bindgen. Having support for Rust, would make creating an in-browser git CLI using wasm-git for instance much easier, without being limited to what's in the libgit2
examples/
written in CThis was mentioned here rust-lang/git2-rs#871
The text was updated successfully, but these errors were encountered: