dapr-wasm icon indicating copy to clipboard operation
dapr-wasm copied to clipboard

Create a customized WasmEdge for dapr

Open juntao opened this issue 4 years ago • 3 comments

The WasmEdge GO SDK allows developers to register host functions to the runtime, and create a customized version of WasmEdge that includes the host functions.

We should add Dapr GO SDK functions into a customized version of WasmEdge.

We should then create Rust APIs for those Dapr host functions so that WasmEdge app developers can use them.

juntao avatar Oct 14 '21 07:10 juntao

Very glad and looking forward to seeing it!

I am also interested in combining dapr with wasm, and am now a newbie to wasm. I am more familiar with dapr, whoever is in charge of this work can contact me, I am very happy and willing to build together or provide help if needed.

Besides, and it's just my personal opinion, I think there may be various ABI standards for different purposes. If the extension of abi is plug-in, it can be very convenient for others to extend their own abi based on your project. image

Taction avatar Oct 17 '21 09:10 Taction

Yes, we do have an established mechanism to import host functions into WasmEdge. You can currently use C or GO to create host functions. Rust is also coming soon.

https://github.com/WasmEdge/WasmEdge/blob/master/docs/c_api.md#Host-Functions

https://github.com/second-state/WasmEdge-go-examples/tree/master/go_ExternRef

If you would like to get in touch and discuss further, please find my email address on my github profile page. Thanks!

juntao avatar Oct 17 '21 17:10 juntao

Very glad and looking forward to seeing it!

I am also interested in combining dapr with wasm, and am now a newbie to wasm. I am more familiar with dapr, whoever is in charge of this work can contact me, I am very happy and willing to build together or provide help if needed.

Besides, and it's just my personal opinion, I think there may be various ABI standards for different purposes. If the extension of abi is plug-in, it can be very convenient for others to extend their own abi based on your project. image

@Taction Glad to get touch with you. I will send you an Email.

chenyukang avatar Oct 22 '21 05:10 chenyukang