TrueBitFoundation / truebit-toolchain

Utility for preparing Truebit tasks
MIT License
8 stars 3 forks source link

Compile Rust to WASM #3

Closed hswick closed 5 years ago

hswick commented 5 years ago

@mrsmkl has an example of compiling Rust to WASM https://github.com/mrsmkl/wasm_check/blob/master/Dockerfile#L42

We need a few more rust specific dependencies installed. We have a few options

  1. Include the Rust dependencies in the existing Dockerfile
  2. Create a separate Dockerfile, possibly separate directory split up for c/c++ and rust

Option 1 seems easiest since we are only supporting a few languages for the time being Option 2 would probably be more flexible for future work