GithubHelp home page GithubHelp logo

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-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.

rust-heroku-slug's People

Contributors

alexcrichton avatar haxxorsid avatar skade avatar tschneidereit avatar yurydelendik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

rust-heroku-slug's Issues

Error: ... editions are unstable ...

https://webassembly.studio/?f=3kwj587992f

[error]: Task build failed: Error: Command failed: /app/.cargo/bin/cargo build --manifest-path=/tmp/rustc_h_x5w620prjdl/Cargo.toml --target=wasm32-unknown-unknown -Z unstable-options --build-plan --quiet

Caused by:
  failed to parse manifest at `/app/.cargo/registry/src/github.com-1ecc6299db9ec823/seed-0.3.6/Cargo.toml`

Caused by:
  editions are unstable

Caused by:
  feature `edition` is required

consider adding `cargo-features = ["edition"]` to the manifest

Could you update tools in this service?
According to this cargo issue, these commands should resolve it:

rustup update
cargo install --force cargo-outdated

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.