Crates.io | emscripten-functions-sys |
lib.rs | emscripten-functions-sys |
version | 4.1.67 |
source | src |
created_at | 2023-08-26 07:33:54.645199 |
updated_at | 2024-09-26 01:36:54.952373 |
description | Bindgen-generated bindings to emscripten system functions |
homepage | https://github.com/ALEX11BR/emscripten-functions/tree/main/emscripten-functions-sys |
repository | https://github.com/ALEX11BR/emscripten-functions |
max_upload_size | |
id | 955397 |
size | 20,783,554 |
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
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.63).
The build_bindings.rs
file that can be run with e.g. rust-script creates declarations for the emscripten functions using bindgen.
The build_bindings.rs
script does the same thing, and requires the bindgen CLI, obtainable e.g. using cargo install bindgen-cli
.
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.