Hello ! I didn't found any documentation on how to make a WASI Interface for making plugins on WebAssembly.
Like, I have a soft on Rust, people must implement a WebAssembly interface in order to plug in my program, in what does wasi consist ?
https://docs.wasmtime.dev/examples.html has some examples of how to expose APIs to plugins.
Thanks a lot, this page in particular will be really helpful! (https://docs.wasmtime.dev/examples-rust-wasi.html)
just to add here -- i've been working on a plugin specific runtime (which uses wasmtime!) that should simplify a lot of the work a plugin system requires for both the embedder and the plugin authors. @bachrc if you haven't already completed your integration and don't mind _very new_ projects, take a look at https://extism.org -- its all open source, so maybe there are some pieces of it that help if you don't end up using it directly.
Last updated: Nov 22 2024 at 17:03 UTC