Sign inSign up

mrdziuban/rust-wasm

By mrdziuban

•Updated over 9 years ago

Nightly Rust with wasm and asm.js support

Image
0

319

mrdziuban/rust-wasm repository overview

⁠docker-rust-wasm

This is a nightly Rust image with support for WebAssembly (and also asm.js, if you're into that) as a target.

⁠Usage

$ cat > hello.rs
fn main() {
    println!("Hello, world!");
}

WebAssembly:

$ docker run -it -v `pwd`:/source jasonuhl/rust-wasm rustc --target=wasm32-unknown-emscripten hello.rs

or asm.js:

$ docker run -it -v `pwd`:/source jasonuhl/rust-wasm rustc --target=asmjs-unknown-emscripten hello.rs

Tag summary

Content type

Image

Digest

Size

762.6 MB

Last updated

over 9 years ago

docker pull mrdziuban/rust-wasm