Skip to content
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

Provide wasm-tools APIs in the browser #435

Open
guybedford opened this issue May 6, 2024 · 2 comments
Open

Provide wasm-tools APIs in the browser #435

guybedford opened this issue May 6, 2024 · 2 comments

Comments

@guybedford
Copy link
Collaborator

Since Jco exposes the wasm-tools APIs, it would be nice for the browser build of Jco to also expose these APIs properly.

@alexcrichton
Copy link
Member

One possibility that might be able to help smoth this is to use the wasm32-unknown-unknown compilation target. That avoids importing WASI APIs at the cost of having to maybe work around some minor issues in the standard library (e.g. manually avoiding std::time, filesystems, etc)

@ahaoboy
Copy link

ahaoboy commented May 11, 2024

It would be great to have support for isomorphic api, so that they can be executed on both nodejs and web at the same time.

I did a simple test, wasm-tools has better performance than wabt, good job
https://github.com/ahaoboy/wasm-tools-wasm-demo

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

3 participants