4 releases
Uses old Rust 2015
0.3.2 | May 7, 2017 |
---|---|
0.3.1 | May 4, 2017 |
0.3.0 | Apr 6, 2017 |
0.2.0 |
|
0.1.0 | Feb 27, 2017 |
#21 in #emscripten
88 downloads per month
8KB
Emscripten API bindings for Rust
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
No runtime deps
~0–2MB
~42K SLoC