#Using wasmer as a plugin system

2 messages · Page 1 of 1 (latest)

storm hollow
#

I'm currently writing a project in Rust which includes a web server.
I want it to be possible for other people to write plugins for the server that add new API endpoints, performing computation on internal data from my project.
How difficult would this be with a WASM engine like wasmer? I'd imagine the plugin registering new endpoints via some function, and the server then calling the WASM code with the request data and responding with whatever the WASM code returns.
However, I don't know what a good way of representing the http data is. My first idea was to use structs from the http crate, but that surely wouldn't work that great with languages other than Rust.
Would I have to write my own Request/Response representations?

#

Using wasmer as a plugin system