#api-bindings #emscripten #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 40/week @ 2024-03-11 19/week @ 2024-03-18 6/week @ 2024-03-25 35/week @ 2024-04-01 13/week @ 2024-04-08 16/week @ 2024-04-15 32/week @ 2024-04-22 13/week @ 2024-04-29 16/week @ 2024-05-06 17/week @ 2024-05-13 21/week @ 2024-05-20 16/week @ 2024-05-27 18/week @ 2024-06-03 8/week @ 2024-06-10 19/week @ 2024-06-17 18/week @ 2024-06-24

66 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
~40K SLoC