#emscripten #bindings #api-bindings #sys

emscripten-functions-sys

Bindgen-generated bindings to emscripten system functions

2 stable releases

3.2.46 Oct 2, 2023
3.1.44 Aug 26, 2023

#1013 in WebAssembly

Download history 28/week @ 2024-02-19 13/week @ 2024-02-26 24/week @ 2024-03-11 44/week @ 2024-03-25 44/week @ 2024-04-01 15/week @ 2024-04-08 4/week @ 2024-04-22

66 downloads per month
Used in emscripten-functions

MIT license

2.5MB
4.5K SLoC

emscripten-functions-sys

This crate contains bindgen-generated bindings for the system emscripten functions, as presented in their API reference. The following headers have bindings available:

  • emscripten
  • html5
  • console

A little description of the files in this project

The bindings are based on the emscripten headers from a compiled emscripten release, like the ones at https://storage.googleapis.com/webassembly/emscripten-releases-builds/, that are downloaded by emsdk.

The emscripten folder contains the headers taken from the emscripten release (currently at version 3.1.46).

The build_bindings.rs file that can be run with e.g. rust-script creates declarations for the emscripten functions using bindgen.

The update_emscripten.sh script updates the headers in the emscripten folder to the latest version from the official docker image. Set the DOCKER variable when running this script to specify a path to your docker. Otherwise docker, then podman will be tried.

The src folder already contains the generated bindings.

No runtime deps