1 unstable release
0.1.0 | Feb 14, 2020 |
---|
#218 in #package-manager
8KB
140 lines
FaaS WASI Runtime Image
This project is investigation/playground to figure out what might work
The idea here is to enable WebAssembly modules, possibly using the WebAssembly System Interface (WASI), to be executed as OpenShift Cloud Function. An end user would have a WASM module they would like to expose as a function. This WASM module could either be a module written and bundled with the users project, or could be a WASM module in the Web Assembly Package Manager (wapm) or in any other package manager, for example Node.js Package Manager (npm).
The idea is that an end user in this case would write the code needed to extract
any required parameters the .wasm
module takes from the HTTP request, and take
the result from the execution of the .wasm
module and place it into the HTTP
response. Exactly how this would look still needs to be throught through.
This project contains a library that end users can use to implements this and also contains a base container image to be used in a FAAS environment.
Building
To build the base image, run the following command:
$ docker build -t dbevenius/wasm-base-image .
Then to publish:
$ docker login
$ docker push dbevenius/wasm-base-image
Publishing
$ cargo login <api access token>
$ cargo publish --dry-run
Dependencies
~49MB
~830K SLoC