Structs§
- EmEnv
- The environment provided to the Emscripten imports.
- Emscripten
Data - Emscripten
Functions - Emscripten
Globals - Emscripten
Globals Data - Emscripten
State - State of the emscripten environment (environment variables, CLI args)
- Libc
DirWrapper
Constants§
- VERSION
- The current version of this crate
Functions§
- align_
memory - allocate_
cstr_ ⚠on_ stack - Safety
- allocate_
on_ ⚠stack - Safety
- emscripten_
call_ main - Call the main function in emscripten, assumes that the emscripten state is set up.
- emscripten_
get_ main_ func_ name - Looks for variations of the main function (usually
["_main", "main"])
, then returns a reference to the name of the first found function. Useful for determining whether a module is executable. - emscripten_
set_ up_ memory - generate_
emscripten_ env - get_
emscripten_ memory_ size - get_
emscripten_ metadata - Reads values written by
-s EMIT_EMSCRIPTEN_METADATA=1
Assumes values start from the end in this order: Last export: Dynamic Base Second-to-Last export: Dynamic top pointer - get_
emscripten_ table_ size - is_
emscripten_ module - We check if a provided module is an Emscripten generated one
- nullfunc
- run_
emscripten_ instance - Top level function to execute emscripten
- set_
up_ emscripten - Call the global constructors for C++ and set up the emscripten environment.
- static_
alloc