Ivan Enderlin
a2854ebfea
fix(c-api) Adjust cbindgen metadata for header files.
2020-10-01 21:20:13 +02:00
Mark McCaskey
5ac0f89d92
Add small clean up
2020-09-30 17:10:05 -07:00
Mark McCaskey
fec7644bb8
Port integration test to Windows
...
Add conditional logic for Windows style object files
Explicitly require c11 for wasm.h
Use `clang++` on Windows for `static_assert`
Improve generated C + add hack to make function pointers work better
Add logic to handle Window's static library file extension
Improve linking logic to work on Windows
Add support for C++ compilers for object-file-engine generated C
Add C++ support to wasmer_wasm.h
Add C++ support to test C file too
Add linking flags for Windows, make assert line-ending neutral
Adjust asserted output to handle differences on Windows
2020-09-30 14:46:34 -07:00
Ivan Enderlin
8969756416
chore(c-api) Regenerate header files.
2020-09-29 16:08:54 +02:00
Ivan Enderlin
4165e389dc
feat(c-api) Use cbindgen@master.
...
Our PR to support `ManuallyDrop`, `MaybeUninit` and `Box` has been
merged, https://github.com/eqrion/cbindgen/pull/578 .
2020-09-29 14:16:09 +02:00
Mark McCaskey
bdbbe7ed2f
Add config support to wasm-c-api
2020-09-28 15:06:00 -07:00
Ivan Enderlin
f61a11526c
chore(c-api) Use original cbindgen instead of our fork.
2020-09-28 15:33:42 +02:00
Ivan Enderlin
04ef295a1d
chore(c-api) Regenerate wasmer_wasm.h.
2020-09-28 14:52:55 +02:00
Ivan Enderlin
174b03f4e9
feat(c-api) Use our fork of cbindgen.
...
Our fork contains incoming PR. It helps for example to skip struct
fields.
2020-09-24 16:15:04 +02:00
Ivan Enderlin
3514988462
feat(c-api) Generate wasmer_wasm.h automatically. First draft.
2020-09-22 16:54:22 +02:00
Mark McCaskey
8a9ac6ce59
Add helper function to get the start function
2020-08-12 18:03:57 -07:00
Mark McCaskey
cba35df3f1
Use wasi_env_set_instance instead of wasi_env_set_memory
2020-08-12 17:32:28 -07:00
Mark McCaskey
892fb4efcf
Make caller responsible for allocation array for getting WASI imports
2020-08-12 17:08:58 -07:00
Mark McCaskey
2e36c8e63b
Clean up and simplify API: explicit version no longer required
2020-08-12 13:09:58 -07:00
Mark McCaskey
5915cd9d3f
Use circular buffer for stdout capture to reduce memory usage
2020-08-12 09:40:44 -07:00
Mark McCaskey
747cdd424a
Try replacing wasi_state_builder_t with wasi_config_t
...
Experimenting to simplify our API.
2020-08-12 09:23:56 -07:00
Mark McCaskey
f4a2b46ace
More small changes from feedback
2020-08-11 16:49:51 -07:00
Mark McCaskey
c52678aba4
Clean up from feedback
2020-08-11 16:31:02 -07:00
Mark McCaskey
3919e435c4
Clean up WASI 'Wasm C API' API
2020-08-11 13:08:33 -07:00