virto-network / valor

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

Enable "invocation" of WASI modules via stdio #54

Open pandres95 opened 1 year ago

pandres95 commented 1 year ago

This PR enables (when supported) that WASI modules to be "called" via stdio.

This means data is appeneded to the WASI process via stdin, where a piped reader is fed with the incoming bytes [u8], while the data is outputted via stdout, using a writable pipe, returning either a Vec<u8> or an error as a result.