Skip to content

WebAssembly support #511

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
stoically opened this issue Jan 10, 2020 · 1 comment
Closed

WebAssembly support #511

stoically opened this issue Jan 10, 2020 · 1 comment

Comments

@stoically
Copy link
Contributor

Not sure if it's in the scope of the bindings, but it would be great if git2-rs could compile to wasm32-unknown-unknown. libgit2 does compile successfully to wasm32 with clang - but in Rust world we'd probably need support from libc first.

On top of that libgit2 would probably need some POSIX JS emulation, like the one provided from emscripten, to actually work. Would be interesting to know whether there are already crates that push into that direction or if it'd need something completely new or maybe inspired/forked from emscripten.

@alexcrichton
Copy link
Member

Thanks for the report! This is likely a better report for libgit2 itself though, since if that has wasm support it should be easy for us to consume it, and that's where almost all of the work is going to happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants