This provides a runtime environment for Javascript on the Gcore FastEdge Platform.
This repo uses git submodules. So in order to build anything you need to run:
git submodule update --recursive --init
Software that needs installing to work with this library:
- Rust
curl -so rust.sh https://sh.rustup.rs && sh rust.sh -y restart shell or run source $HOME/.cargo/env
- Build tools
sudo apt install build-essential
- binaryen
sudo apt install binaryen
- rust target wasm32-wasi
rustup target add wasm32-wasi
- cbindgen
cargo install cbindgen
- wasi-sdk, version 20, with
alternate install instructions
curl -sS -L -O https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-20/wasi-sdk-20.0-linux.tar.gz tar xf wasi-sdk-20.0-linux.tar.gz sudo mkdir -p /opt/wasi-sdk sudo mv wasi-sdk-20.0/* /opt/wasi-sdk/
npm run build:dev
We use a docker image in our CI/CD pipeline for building. This can be used locally, see Compiler README.md
Coming soon... 🚀