Rust bindings for Faasm.
Running the following will:
1. Download faasm libs and store them in vendor
2. Include the bindings.rs
file in vendor
in the library
3. Build the Wasm library
bash
cargo build --target wasm32-unknown-unknown
If you set the FAASM_SYS_DEV
environment variable before building, then the build script will fetch libraries according to the Faasm local development defaults. You can then run the test script as well:
bash
env FAASM_SYS_DEV=1 cargo build --target wasm32-unknown-unknown
./bin/test.sh
Note that when used as a submodule of rust-faasm,
the target
directory is directed one level up.