Commit Graph

18 Commits

Author SHA1 Message Date
Felix Schütt
2e06f3b1f5 Re-add Makefiles 2022-12-07 14:55:43 +01:00
Felix Schütt
f44f7071d1 Add cargo test-integration and test-capi impl 2022-12-07 14:55:43 +01:00
Felix Schütt
dc54c608d0 Add /include directory to c-api/tests 2022-09-23 14:22:48 +02:00
Felix Schütt
e7b41f87f2 Fix Windows build in VM: 2022-09-22 17:07:44 +02:00
Felix Schütt
4f5699216e Fixed -L and -I options to contain a space 2022-09-22 10:25:22 +02:00
Felix Schütt
048202b68b Fix LD_PRELOAD on Linux, exit with 0 instead of 1 2022-09-22 09:48:56 +02:00
Felix Schütt
6b800783a2 Try debugging directory file paths with exa on failure 2022-09-19 10:19:28 +02:00
Felix Schütt
7441fade9c Final fixes for make test-capi on windows-msvc
- .wasm files should always be opened in "rb" mode
- open_memstream doesn't exist on Windows, use tempfile() instead
- remove .obj and .exe files when the test finish
2022-09-14 22:31:19 +02:00
Felix Schütt
05af38c9a5 Port first Makefile to Rust + add MSVC flags 2022-09-14 13:11:48 +02:00
Felix Schütt
328a98edec Fixup Makefile-based tests to be Rust-based instead 2022-09-13 21:34:02 +02:00
Ivan Enderlin
7193282de5 test(c-api) Clean up the tests/Makefile.
1. Use single tabs rather than three, it fits in a small terminal
   window,
2. `CAPI_WASMER_TESTS` has been removed in
   https://github.com/wasmerio/wasmer/pull/2375, but partially. This
   patch finishes the work.
3. The `test-%: %.o` rule is a remainder of some older code, it's no
   longer needed.
2021-06-08 12:01:19 +02:00
Syrus Akbary
b520a5f58a Renamed wasmer_wasm.h to wasmer.h 2021-06-01 21:47:37 -07:00
Ivan Enderlin
f5a7ac960f feat(c-api) Remove the deprecated API.
Until this patch, our C API comes in 2 flavors: `deprecated` and
`wasm_c_api`. With the coming 2.x version of Wasmer, we would like to
remove the `deprecated` API, and keep the `wasm_c_api` only.

This patch removes the `deprecated` API from the `wasmer-c-api`
crate. It also cleans up the `Makefile` and the documentation
system. Previously, the documentation for the `deprecated` API was
relying on Doxygen, which was one new dependency the user had to
install. For the `wasm_c_api`, it relies on `rustdoc`, which is way
better because all examples are run and tested as part of our test
suite.

This clean up also removes the need to deal with `system-libffi` both
in the crate itself and in the `Makefile`, which was an edge case for
macOS on aarch64, and a needle in the foot for some of our users.

Finally, the `build.rs` is now simplified because we no longer need to
exclude symbols from one header to another. It also means that we only
provide the `wasmer_wasm.h` header file now; the `wasmer.h` and
`wasmer.hh` headers are removed.
2021-05-31 17:59:19 +02:00
Syrus Akbary
71176cca7a Unified C API tests 2021-05-15 09:15:50 -07:00
Mark McCaskey
62663ab5e1 Get multi.c working in the Wasm C API 2020-12-17 14:35:55 -08:00
Ivan Enderlin
d6d9e4edf5 chore(c-api) Update the Makefile to remove a test. 2020-12-11 10:10:09 +01:00
Syrus Akbary
44c987694d Improved formatting of Makefile 2020-12-04 19:52:15 -08:00
Syrus Akbary
79fb698c15 Remove dependency on cmake 2020-12-04 13:39:44 -08:00