Open limcheekin opened 1 year ago
Hi, thanks for the issue!
This is primarily a Dart package. Could you explain how is the interaction with Javascript? You don't need much Javascript to use this package. However, the same wasm module could be reused on both languages. Could you explain more of what you mean?
You can find more information in their documentation. However I think you could do it by using StreamSink
as an argument to a Rust function. Within this package we provide a way to run function from threaded wasm modules asynchronously.
You can see the latest code and multiple packages examples that use wasm_run in this PR https://github.com/juancastillo0/wasm_run/pull/14
Hi, thanks for the issue!
- This is primarily a Dart package. Could you explain how is the interaction with Javascript? You don't need much Javascript to use this package. However, the same wasm module could be reused on both languages. Could you explain more of what you mean?
- You can find more information in their documentation. However I think you could do it by using
StreamSink
as an argument to a Rust function. Within this package we provide a way to run function from threaded wasm modules asynchronously.You can see the latest code and multiple packages examples that use wasm_run in this PR #14
Thanks for quick response.
surrealdb.wasm
is built by wasmpack
and the wasm-bindgen
will produce a JavaScript bindings (index.js) and a wasm module (index_bg.wasm). A single-page application or static html need to use the JavaScript bindings in order to interact with the wasm module, please take a look on the code here. I managed to integrate the JavaScript bindings and wasm module of surrealdb.wasm into a Flutter Web app using package:js. My question: How the wasm_run
package able to make the surrealdb.wasm run across platforms such Android, iOS, Linux, Windows, including Web with/without JavaScript?Within this package we provide a way to run function from threaded wasm modules asynchronously
? Better with code snippets.I will look into PR #14.
Please advise. Thank you.
We might be up for partnering on this https://github.com/openwebf/mercury
Hi there,
First of all, thanks for created and published the package.
I have the following questions regarding the package:
flutter_rust_bridge
doesn't support async rust code officially, is there any solution offered by the package?Appreciate if there are sample projects that answer the questions above.
Please advise. Thank you.