Module create_exe

Source
Expand description

Create a standalone native executable for a given Wasm file.

ModulesΒ§

http_fetch πŸ”’
utils πŸ”’

StructsΒ§

CommandEntrypoint
Command entrypoint for multiple commands
CreateExe
The options for the wasmer create-exe subcommand
CrossCompile πŸ”’
CrossCompileSetup πŸ”’
Entrypoint
Given a pirita file, determines whether the file has one default command as an entrypoint or multiple (need to be specified via –command)
PrefixMapCompilation πŸ”’
Prefix map used during compilation of object files
Volume
Volume object file (name + path to object file)

EnumsΒ§

AllowMultiWasm
In pirita mode, specifies whether multi-atom pirita files should be allowed or rejected
UrlOrVersion
Url or version to download the release from

ConstantsΒ§

LINK_SYSTEM_LIBRARIES_UNIX πŸ”’
LINK_SYSTEM_LIBRARIES_WINDOWS πŸ”’

FunctionsΒ§

compile_atoms πŸ”’
compile_pirita_into_directory πŸ”’
Given a pirita file, compiles the .wasm files into the target directory
create_header_files_in_dir πŸ”’
Create the static_defs.h header files in the /include directory
generate_wasmer_main_c πŸ”’
Generate the wasmer_main.c that links all object files together (depending on the object format / atoms number)
get_entrypoint πŸ”’
get_module_infos πŸ”’
link_exe_from_dir πŸ”’
Given a directory, links all the objects from the directory appropriately
link_objects_system_linker πŸ”’
Link compiled objects using the system linker
prepare_directory_from_single_wasm_file πŸ”’
Given a .wasm file, compiles the .wasm file into the target directory and creates the entrypoint.json
run_c_compile πŸ”’
Compile the C code.
serialize_volume_to_webc_v1 πŸ”’
volume_file_block πŸ”’
Serialize a set of volumes so they can be read by the C API.
write_entrypoint πŸ”’
write_volume_obj πŸ”’