Skip to content

KIPFoundation/rust-heroku-slug

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rustc service for WebAssembly Studio

This is heroku rustc compiler microservice for WebAssembly Studio. It is also a slug builder.

Running service locally

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:

  1. rustup, see https://www.rustup.rs/
  2. rustc nightly channel: rustup toolchain install nightly
  3. and wasm target: rustup target add wasm32-unknown-unknown --toolchain nightly
  4. wasm-gc: cargo install wasm-gc
  5. wasm-bindgen: cargo install wasm-bindgen-cli
  6. rustfmt nightly channel: rustup component add rustfmt-preview --toolchain nightly

See also Rust for the Web for details.

Change configuration in WebAssembly Studio

The "rustc" and "cargo" endpoints addresses can be located at the https://github.com/wasdk/WebAssemblyStudio/blob/master/config.json and be changed locally.

Building and installing the slug

Run APP=<your-heroku-app> make publish to fully build and setup slug at your app.

About

Source for WebAssembly Studio rustc service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 62.3%
  • Rust 21.1%
  • Dockerfile 8.7%
  • Makefile 5.7%
  • Shell 2.2%