From c9af76dad50e7a2d730942a17a136f9eef1f9072 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Wed, 18 Sep 2024 19:28:15 +0900 Subject: [PATCH] Add README.md --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..3313ac5 --- /dev/null +++ b/README.md @@ -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.