gifnksm / emscripten-sys

Emscripten API bindings for Rust
Apache License 2.0
18 stars 4 forks source link
binding emscripten rust

Emscripten API bindings for Rust

Build Status crates.io

Documentation

Usage

Add the following dependencies to your Cargo.toml:

[target.'cfg(target_os = "emscripten")'.dependencies]
emscripten-sys = "0.3"

How to build

. <path to emsdk>/emsdk_env.sh
cargo build --target asmjs-unknown-emscripten

How to test

cargo test --target asmjs-unknown-emscripten --no-run
node target/asmjs-unknown-emscripten/debug/emscripten_sys-*.js