Closed syrusakbary closed 2 years ago
Outcome:
Wasmer should support creating executables from wapm packages (that are self-contained)
Before, only the create-exe from .wasm
would work:
wasmer create-exe cowsay.wasm
But now, the following with ALSO work:
wasmer create-exe python.package
State of the art:
Technically this can be closed now, we shipped this as part of the pirita changes in wasmer-private/create-obj-pirita
in the wasmer.h
.
Right now,
create-exe
works great when compiling an standalone wasm file to an executable. The python package consists of:python.wasm
(the Python wasm module)lib/asyncio.py
,lib/...
, ...).However, when doing it with wapm packages such as Python (which had a filesystem), we also need to embed the filesystem (as binary) in the compiled executable, so we can cross-compile the wapm python package to a self-working
python.exe
(just one file) that has the wasm file contents compiled statically, and also the filesystem binary contents.