You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey! My current application requires WASM code (handled as plugins) to be installable by a user. I wanted to use wasmer to run these under a restricted environment on the host machine.
Which of the patterns is the one I would want to use? It seems like Lockdown is the right one as I do not need any of the provided pre-enabled APIs to read/write files and the sorts. The best-case for me would be to define my own functions that can be called from JS land.
However, I can't find any examples for a Lockdown pattern app in the repository to see how the bindings from Rust to JS would have to be written.
Would be great if someone could help me out here!
And thanks for the project! Around 2 years ago I had a similar project like tauri with minimal API surface that used webview. Great to see that this one took off 🚀
Edit: Out of interest, is it possible to spin up a tokio executor inside the Rust code? To give an example: JS land calls a custom HTTP fetch function that I've written in Rust and the Rust implementation would use the async runtime to execute it and return it. I do need to bulk-download A LOT (maybe 100,000-ish) files 🤔
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey! My current application requires WASM code (handled as plugins) to be installable by a user. I wanted to use
wasmer
to run these under a restricted environment on the host machine.Which of the patterns is the one I would want to use? It seems like
Lockdown
is the right one as I do not need any of the provided pre-enabled APIs to read/write files and the sorts. The best-case for me would be to define my own functions that can be called from JS land.However, I can't find any examples for a
Lockdown
pattern app in the repository to see how the bindings from Rust to JS would have to be written.Would be great if someone could help me out here!
And thanks for the project! Around 2 years ago I had a similar project like tauri with minimal API surface that used
webview
. Great to see that this one took off 🚀Edit: Out of interest, is it possible to spin up a tokio executor inside the Rust code? To give an example: JS land calls a custom HTTP fetch function that I've written in Rust and the Rust implementation would use the async runtime to execute it and return it. I do need to bulk-download A LOT (maybe 100,000-ish) files 🤔
Beta Was this translation helpful? Give feedback.
All reactions