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

How do i compile this to emscripen? #186

Closed
ScriptedAlchemy opened this issue Dec 16, 2021 · 2 comments
Closed

How do i compile this to emscripen? #186

ScriptedAlchemy opened this issue Dec 16, 2021 · 2 comments

Comments

@ScriptedAlchemy
Copy link

Your library seems to include fetch and many other things that existing ones do not have out of the box.

How could one use this project with emscripten / generate a JS file alongside a single .wasm file

That would allow me to instantiate this in a client / existing server via require() and pass evalCode into the wasm module

@saghul
Copy link
Owner

saghul commented Dec 17, 2021

I'm not sure this can be compiled to Emcripten. QuickJS can, but this library depends on libuv and cURL, which I don't think would work.

@ScriptedAlchemy
Copy link
Author

We are exploring quick with rust and retrofitted bindings to enable bindings to any host IO. Like cloudflare for example

Thanks for the quick response!

@saghul saghul closed this as completed Jan 23, 2022
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