This is heroku rustc compiler microservice for WebAssembly Studio. It is also a slug builder.
The app/server can be run from the "app" folder:
cd app
node .
By default it will run on "0.0.0.0:8082" address. Use PORT
environment variable to change it.
Before running it first time, you will need to setup the dependencies:
- rustup, see https://www.rustup.rs/
- rustc nightly channel:
rustup toolchain install nightly
- and wasm target:
rustup target add wasm32-unknown-unknown --toolchain nightly
- wasm-gc:
cargo install wasm-gc
- wasm-bindgen:
cargo install wasm-bindgen-cli
- rustfmt nightly channel:
rustup component add rustfmt-preview --toolchain nightly
See also Rust for the Web for details.
The "rustc" and "cargo" endpoints addresses can be located at the https://github.com/wasdk/WebAssemblyStudio/blob/master/config.json and be changed locally.
Run APP=<your-heroku-app> make publish
to fully build and setup slug at your app.