Add README.md
This commit is contained in:
parent
55d5948392
commit
c9af76dad5
1 changed files with 18 additions and 0 deletions
18
README.md
Normal file
18
README.md
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# Emscripten Rust/C Template
|
||||||
|
|
||||||
|
This is a template for an emscripten project with a "Rust backend".
|
||||||
|
|
||||||
|
## Setting up
|
||||||
|
|
||||||
|
(Note that this has only been tested in a Linux environment.)
|
||||||
|
|
||||||
|
1. Clone `https://github.com/emscripten-core/emsdk` to `${HOME}/git/emsdk`.
|
||||||
|
2. Set up `emsdk` with `${HOME}/git/emsdk/emsdk install latest` and
|
||||||
|
`${HOME}/git/emsdk/emsdk activate latest`.
|
||||||
|
3. Set up `rustup`.
|
||||||
|
4. Get the `wasm32-unknown-emscripten` target with
|
||||||
|
`rustup add wasm32-unknown-emscripten`.
|
||||||
|
|
||||||
|
## Build
|
||||||
|
|
||||||
|
Just run `make` in the root of this project.
|
Loading…
Reference in a new issue