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

Run nodejs example with c api #35

Open
Galaxy0106 opened this issue Dec 28, 2021 · 3 comments
Open

Run nodejs example with c api #35

Galaxy0106 opened this issue Dec 28, 2021 · 3 comments

Comments

@Galaxy0106
Copy link

Galaxy0106 commented Dec 28, 2021

Hello, I‘d like to ask if I can use the official c-api to run the wasm module compiled in this project(e.g. k-means), or maybe I need some other things?

@juntao
Copy link
Member

juntao commented Dec 29, 2021

What is the "official c-api" you refer to? Thanks.

@Galaxy0106
Copy link
Author

Thank you for the reply and what I mean is https://wasmedge.org/book/en/embed/c/ref.html.

@juntao
Copy link
Member

juntao commented Dec 29, 2021

The WasmEdge C API can load a WasmEdge VM and run standard WASM files. However, some examples in this repo are compiled with wasm-bindgen, and they require special handling in the host. We do not currently support 'wasm-bindgen` in the C API.

Going forward, we plan to migrate all wasm-bindgen examples to wasmedge-bindgen. Currently wasmedge-bindgen is supported in our GO SDK, but we plan to support it in our NODE addon and C API as well.

https://wasmedge.org/book/en/embed/go/function.html

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