function-mesh icon indicating copy to clipboard operation
function-mesh copied to clipboard

[Feature] Support Rust & WebAssembly Runtime

Open sijie opened this issue 5 years ago • 5 comments

Motivation

Current the approach to support different language functions is not a scalable approach. We should be looking into using WebAssembly to standardize the function interfaces and implement one runtime (either using Go, Rust, and Javascript).

sijie avatar Dec 01 '20 02:12 sijie

Hi, is there any plans to implements this or at least in the meantime add support to Rust without WebAssembly? Thank you!

javiramos1 avatar Feb 07 '23 06:02 javiramos1

maybe using the kwasm operator may help to run functions as wasm binaries: https://github.com/KWasm/kwasm-operator

hpvd avatar Jun 13 '24 19:06 hpvd

btw there are 2 up-to-date video sources on kwasm:

overview: https://www.youtube.com/watch?v=d51lFnAR-Z0 review: https://www.youtube.com/watch?v=oY9le4DDAOY

hpvd avatar Jun 13 '24 19:06 hpvd

kwasm is a part of https://www.spinkube.dev/

here is an intro: https://www.cncf.io/online-programs/cloud-native-live-introducing-spinkube/

hpvd avatar Jun 13 '24 22:06 hpvd

@hpvd StreamNative Cloud already has wasm support with a private preview, see https://docs.streamnative.io/docs/function-develop-wasm if you are interested.

freeznet avatar Jun 14 '24 02:06 freeznet