GithubHelp home page GithubHelp logo

skade / rust-heroku-slug Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yurydelendik/rust-heroku-slug

0.0 3.0 0.0 3.09 MB

Source for WebAssembly Studio rustc service

Makefile 12.00% JavaScript 88.00%

rust-heroku-slug's Introduction

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
  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" endpoint address 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.

rust-heroku-slug's People

Contributors

yurydelendik avatar alexcrichton avatar haxxorsid avatar

Watchers

Florian Gilcher avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.