Felix Schütt
b5119432ef
Add CLI handling to wasmer_main.c
2022-12-21 15:51:46 +01:00
Felix Schütt
1e2617ca18
Add feature=pirita_file
2022-10-26 17:44:21 +02:00
Manos Pitsidianakis
306347e1b9
create-exe: fix serialized create-exe not working
...
Unified generated objects interfaces: both static and serialized objects
expose the same function signature to create the module:
wasm_module_t* wasmer_object_module_new(wasm_store_t* store, const char* module_name);
2022-08-21 16:25:52 +03:00
Manos Pitsidianakis
8215b65494
cli: initialize wasienv memory in create-exe
2022-07-29 10:40:31 +03:00
Manos Pitsidianakis
a02ff59a0f
cli: re-introduce create-exe functionality
2022-07-29 10:40:23 +03:00
Manos Pitsidianakis
8be0089893
Remove engine-staticlib
2022-06-16 16:57:45 +03:00
Johnathan Sharratt
b0709e4153
Implemented multithreading and fixed a number of bugs with WASIX
2022-06-15 19:26:57 +03:00
Syrus Akbary
b520a5f58a
Renamed wasmer_wasm.h to wasmer.h
2021-06-01 21:47:37 -07:00
Syrus Akbary
0d65134b3d
Fixing tests and remove unused wasm.h
2021-06-01 19:40:33 -07:00
Ivan Enderlin
5d302f0d4a
feat: Rename wasmer-engine-object-file to wasmer-engine-staticlib.
2021-05-31 14:19:14 +02:00
Nick Lewycky
2592094fd1
Simplify string manipulation code, use more standard library functions.
2021-02-15 01:19:44 -08:00
Nick Lewycky
0157016b4f
Undo reordering of #include done by clang-format.
...
The header file generated by engine-object-file doesn't #include the wasm types it needs and relies on these being included before it.
2021-02-15 01:06:26 -08:00
Nick Lewycky
d589d83d09
Don't #include inside extern "C" blocks.
...
Also free the malloc'd error string in print_wasmer_error().
Run the C code through clang-format.
2021-02-10 18:00:58 -08:00
Ivan Enderlin
453ece6415
fix(c-api) Call wasi_env_delete manually.
...
`wasi_get_imports` isn't taking ownership of `wasi_env_t` (despites
what is written in the documentation). And it must not take ownership
of it, since one could use it with the `wasi_env_read_stdout` &
sibling functions after having called `wasi_get_imports`.
Consequently, this patch calls `wasi_env_delete` to avoid leaking
memory.
2021-02-02 14:29:10 +01:00
Mark McCaskey
46204d6357
Fix up more tests
2020-10-21 12:00:30 -07:00
Mark McCaskey
c5df8cfd9e
Fix func_calls to not pass NULL but WASM_EMPTY_VEC
2020-10-19 14:50:39 -07:00
Mark McCaskey
6d326233f7
Merge branch 'master' into fix/create-exe-genearted-code-bugs
2020-10-19 10:03:05 -07:00
Mark McCaskey
2175472c6d
When running in WASI, get the _start function explicitly
2020-10-16 13:43:14 -07:00
Ivan Enderlin
1cdb5b5876
fix(c-api) Fix another typo. Damn.
2020-10-16 21:24:36 +02:00
Ivan Enderlin
3b05c2612d
fix(c-api) Fix last edit of the wasmer_create_exe_main.c file.
2020-10-16 20:44:49 +02:00
Ivan Enderlin
4f9932c350
feat(cli) Update the crate_exe_main.c file to the latest Wasm C API.
2020-10-16 10:46:28 +02:00
Mark McCaskey
81fd4fc042
Clean create-exe code a bit
2020-10-12 15:53:46 -07:00
Mark McCaskey
a0b237c1f6
Add test using mapdir and dir, fix misc bugs
2020-10-12 15:04:25 -07:00
Mark McCaskey
ba7b24f696
Add --dir and --mapdir support to native executable
2020-10-09 17:38:14 -07:00
Mark McCaskey
65265dbd73
Add first draft of wasmer create-exe
2020-10-08 14:13:54 -07:00