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.sh
Compile this project (make sure you have the right toolchain, see Rust notes below):
cd workspace
cargo build --target wasm32-unknown-unknown
Upload and run:
./bin/upload.sh
./bin/run.sh
To 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