virto-network / valor

Create HTTP APIs with a plugin system that runs in the server and the browser.
GNU General Public License v3.0
9 stars 8 forks source link

[vlugin] Support structs #3

Closed olanod closed 3 years ago

olanod commented 3 years ago

It should be possible to decorate a struct that implements the request handler interface to be loaded as a native library or WASM Worker.

#[vlugin]
struct MyHandler;

impl RequestHandler for MyHandler {...}