#emscripten #api-bindings #build

sys emscripten-sys

Emscripten API bindings for Rust

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 Apr 6, 2017
0.1.0 Feb 27, 2017

#21 in #emscripten

Download history 11/week @ 2024-07-17 18/week @ 2024-07-24 18/week @ 2024-07-31 10/week @ 2024-08-07 6/week @ 2024-08-14 7/week @ 2024-08-21 7/week @ 2024-08-28 5/week @ 2024-09-18 7/week @ 2024-09-25

88 downloads per month

MIT/Apache

8KB

Emscripten API bindings for Rust

Build Status

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

No runtime deps

~0–2MB
~42K SLoC