-
Clone repo
# Go to Home Directory cd ~ # You can clone into home directory or different directory git clone https://github.com/tijlleenders/ZinZen-scheduler.git
-
Add target for wasm:
rustup target add wasm32-unknown-unknown # Go to project directory cd ~/ZinZen-scheduler/
-
Install WASM dependencies
cargo install wasm-bindgen-cli
- Or Install wasm-bindgen command line interface with any dependencies
- If it fails with openssl or pkg-config error message do
sudo apt-get install wabt binaryen # [... or DIY](https://github.com/WebAssembly/wabt)
- If it fails with
linker 'cc' not found
dosudo apt install build-essential
and retry
-
(Optional) Install deno. Only necessary if you want to run the deno tests that test the usage of the WASM module in JavaScript context.
-
You can now run the test from javascript/deno or from
cargo
as below:# Run tests by deno ./deno_test.sh # Run tests by cargo cargo test
-
Debugging: extra, useful information for an efficient debugging setup can be found at Debugging-Setup
-
Profiling: methods for profiling are described in Profiling