-
Notifications
You must be signed in to change notification settings - Fork 57
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
Using the WASM file from Rust code instead of the WasmEdge CLI Tool #96
Comments
The wasmedge_quickjs runtime depends on the async networking API provided by WasmEdge. It would not work on other Wasm implementations. Can you use the WasmEdge Rust SDK to embed it? It is quite similar to Rust SDKs provided by the other two runtimes. Thanks. |
The problem is that the working of the WasmEdge Rust SDK depends on the installation of WasmEdge, and it's not practical to install the WasmEdge on every user's computer because its install script keeps failing due to some weird network issues. Is it feasible that I want to migrate the the async networking API implementation of WasmEdge to wasmer? |
Hmm, what are the networking issues you are encountering? I think our installer files are hosted on GitHub. But we can also mirror it somewhere else. You are welcome to port the wasmedge socket impl to wasmer or wasmtime, but it is likely to be a big task since those are written in different languages. |
Running command with VPN:
Running command without VPN:
I have run the above command on MacOS Big Sur 11.7 in China. Might be useful info is that when I ran the installation scripts of Wasmer and Wasmtime, it was very smooth and completed within 5 seconds. Also worth noting that not every user is willing to install Python for WasmEdge. |
Hi @skirodev Sorry for the inconvenience. Because the installation of WasmEdge depends on rawgithubcontents.com, which doesn't work well in China. I think https://ghproxy.com/ can help solve this problem. Let me know if this works. Thanks. BTW, we're also looking for more advanced solutions. Do you have any suggestions? |
What are the source files? |
I want to embed this Javascript WASM runtime by using a Rust WASM runtime in a Rust program, for example wasmer or wasmtime and so on. However, When I use
wasmer
andwasmer_wasi
crates to write code, I realize that I encountered a problem about WASI.Is there any way to help me solve it here? I will be very grateful for your help.
The text was updated successfully, but these errors were encountered: