Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hayasshi/wasmaas
https://github.com/hayasshi/wasmaas
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/hayasshi/wasmaas
- Owner: hayasshi
- License: mit
- Created: 2021-04-10T14:36:05.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-04T14:03:21.000Z (over 3 years ago)
- Last Synced: 2023-08-12T19:51:08.657Z (over 1 year ago)
- Language: Rust
- Size: 555 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wasmaas
Proof of concept of `WASM as a Service`.
## Features
- upload wasm and create space(url path) for it
- pass through request to wasm## local build & run
```
docker compose up --build
```## Release to GAE
```
bash gae/build.sh # unnecessary if release binary is already builded
gcloud app deploy gae/app.yaml
```## Build wasm example
#### Needed additional tools
```
rustup target add wasm32-wasi
```If you want to use cargo conveniently for wasm, you can install `cargo-wasi` and [wasmtime](https://github.com/bytecodealliance/wasmtime#installation)
```
curl https://wasmtime.dev/install.sh -sSf | bash
cargo install cargo-wasi
```#### Build WASM(WASI)
```
cargo build --target wasm32-wasi --release -p double
cargo build --target wasm32-wasi --release -p greet# If you have cargo-wasi installed, you can also do the following
cargo wasi build --release -p double
cargo wasi build --release -p greet
```## todo
- Impl file upload on actix-web
- Impl file put to CloudStrage
- Impl data put to CloudDatastore
- Impl exec wasm on wasmtime
- Impl features