Skip to content

Latest commit

 

History

History
60 lines (47 loc) · 1.37 KB

DEVELOPMENT.md

File metadata and controls

60 lines (47 loc) · 1.37 KB

FastEdge JS SDK

This provides a runtime environment for Javascript on the Gcore FastEdge Platform.

Working with the source code

This repo uses git submodules. So in order to build anything you need to run:

git submodule update --recursive --init

Tooling Requirements

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/

Building

npm run build:dev

Docker Compiler

We use a docker image in our CI/CD pipeline for building. This can be used locally, see Compiler README.md

Testing

Coming soon... 🚀