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
Compile to wasm32-wasi directly so users can use opendal in wasm runtime like wasmtime and wasmedge. (need to use crates like tokio-wasi, not started)
Split into host functions and client sdk, users will need to load functions when they start the runtime (this issue).
Integrate into runtimes directly that replace their fs implementation. (Is this possible?)
The text was updated successfully, but these errors were encountered:
Xuanwo
changed the title
idea: Provide OpenDAL as host functions for wasmtime/wasmedge
idea: Provide OpenDAL as host functions for wasm runtimes
Jan 11, 2024
As demonstrated in @Zheaoli's opendal-wasmedge-demo, we can offer opendal as host functions for all of wasmtime, wasmedge and wasmer.
We can have the following design:
opendal-wasm-sdk
that exposes our wasm API. Users can use the sdk across different supported runtime.opendal-wasm-module
.With those crates support, users can use opendal in this way:
opendal-wasm-sdk
or calling opendal wasm api in their wasm code.opendal-wasm-module
to register host functions.There are many ways to integrate with WASM, and OpenDAL plans to support for the following:
wasm32-unknown-unknown
directly so users can use opendal in browser, tracked at Tracking issues of OpenDAL wasm32-unknown-unknown target support #3803wasm32-wasi
directly so users can use opendal in wasm runtime like wasmtime and wasmedge. (need to use crates liketokio-wasi
, not started)The text was updated successfully, but these errors were encountered: