This is project is for writing Faasm Rust functions.
Both Faasm and faasm-sys are submodules of this project. Make sure
you update submodules when cloning (git submodules update --init).
Set up Faasm:
# Start local cluster
./bin/start-faasm.shCompile this project (make sure you have the right toolchain, see Rust notes below):
cd workspace
cargo build --target wasm32-unknown-unknownUpload and run:
./bin/upload.sh
./bin/run.shTo compile to wasm, it's recommended that you have a nightly toolchain set up, i.e.:
rustup update
rustup toolchain install nightly
rustup default nightly
rustup target add wasm32-unknown-unknown --toolchain nightly- See faasm-sys requirements
If you have a Faasm local development environment set up (advanced), you can run this project with:
./bin/run-local.sh