wasm-bindgen/guide/src/contributing.md
2018-06-20 19:28:13 +02:00

986 B

Contributing to wasm-bindgen

This section contains instructions on how to get this project up and running for development.

Prerequisites

  1. Rust Nightly. Install Rust. Once Rust is installed, run

    rustup default nightly
    rustup target add wasm32-unknown-unknown
    
  1. The tests for this project use Node. Make sure you have node >= 8 installed, as that is when WebAssembly support was introduced. Install Node.
  1. The tests for this project also use yarn, a package manager for Node. To install yarn, run:

    npm install -g yarn
    

    or follow other platform-specific instructions here.

    Once yarn is installed, run it in the top level directory:

    yarn
    

Running Tests

Finally, you can run the tests with cargo:

cargo test