Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.35 KB

Development-Setup.md

File metadata and controls

45 lines (35 loc) · 1.35 KB

Development setup

  1. 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
  2. Install Rust

  3. Add target for wasm:

    rustup target add wasm32-unknown-unknown  
    
    # Go to project directory
    cd ~/ZinZen-scheduler/
  4. Install WASM dependencies

    cargo install wasm-bindgen-cli 
    sudo apt-get install wabt binaryen
    # [... or DIY](https://github.com/WebAssembly/wabt)
  5. (Optional) Install deno. Only necessary if you want to run the deno tests that test the usage of the WASM module in JavaScript context.

  6. 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
  7. Debugging: extra, useful information for an efficient debugging setup can be found at Debugging-Setup

  8. Profiling: methods for profiling are described in Profiling