Skip to content

Foo-x/rust-wasm-incoming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

rust-wasm-incoming

1. Build

  1. Create docker-machine

    1. $ docker-machine create -d virtualbox --virtualbox-memory=4096 --virtualbox-cpu-count=2 --virtualbox-disk-size=50000 rust-wasm
  2. Build

    1. $ cd /path/to/rust-wasm-incoming
    2. $ docker build -t foo .
         It takes some time and the size of the image is about 26GB.

2. Usage

WebAssembly

$ docker run -it -v `pwd`:/source foo rustc -O --target wasm32-unknown-emscripten bar.rs -o bar.html

asm.js

$ docker run -it -v `pwd`:/source foo rustc -O --target asmjs-unknown-emscripten bar.rs -o bar.html

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published