Crates.io | emscripten-sys |
lib.rs | emscripten-sys |
version | 0.3.2 |
source | src |
created_at | 2017-02-27 14:10:03.814845 |
updated_at | 2017-05-07 13:31:12.80833 |
description | Emscripten API bindings for Rust |
homepage | |
repository | https://github.com/gifnksm/emscripten-sys |
max_upload_size | |
id | 8713 |
size | 17,981 |
Add the following dependencies to your Cargo.toml
:
[target.'cfg(target_os = "emscripten")'.dependencies]
emscripten-sys = "0.3"
. <path to emsdk>/emsdk_env.sh
cargo build --target asmjs-unknown-emscripten
cargo test --target asmjs-unknown-emscripten --no-run
node target/asmjs-unknown-emscripten/debug/emscripten_sys-*.js