emscripten-sys 0.3.2

Emscripten API bindings for Rust
docs.rs failed to build emscripten-sys-0.3.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

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