Commit Graph

183 Commits

Author SHA1 Message Date
Felix Schütt
a68b8fb4b7 Set working dir on both windows and linux 2022-09-15 22:47:51 +02:00
Felix Schütt
dd5a5cc807 Debug /include directory and don't emit empty ldflags 2022-09-15 21:47:59 +02:00
Felix Schütt
ec58b61b66 Use "make package-capi" instead of "make package" 2022-09-15 18:48:48 +02:00
Felix Schütt
18006009aa Add more debugging to failing "make package" command 2022-09-15 18:23:25 +02:00
Felix Schütt
0408922079 cargo fmt 2022-09-15 17:17:29 +02:00
Felix Schütt
d70f03ae27 Run "make package" in test code if the include dirs don't exist 2022-09-15 17:16:20 +02:00
Felix Schütt
d267966db3 Add better debugging to wasmer-capi runner 2022-09-15 15:43:03 +02:00
Felix Schütt
abfb861072 cargo fmt 2022-09-15 14:48:58 +02:00
Felix Schütt
219d0c0278 Use gcc instead of cc, fix wasmer/lib/c-api in wasmer_base_dir string 2022-09-15 14:46:41 +02:00
Felix Schütt
4f9b9a82cd Fix include paths on linux CC 2022-09-15 14:05:37 +02:00
Felix Schütt
4a7e3d0d9b Added proper resolving of WASMER_DIR 2022-09-15 13:55:34 +02:00
Felix Schütt
97e5ffe264 cargo fmt 2022-09-15 13:16:06 +02:00
Felix Schütt
c59ca2c3e5 Add symlink resolving to testing crates 2022-09-15 13:10:30 +02:00
Felix Schütt
ada5810b25 Fix various compilation errors on windows 2022-09-15 11:47:20 +02:00
Felix Schütt
94baa50bbf cargo fmt 2022-09-15 11:38:13 +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
fd390f6160 Fix first Makefile completely on Windows 2022-09-14 15:55:41 +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
Felix Schütt
59eb5f177e Fixed compilation on Windows MSVC (first 20 tests) 2022-09-13 18:58:29 +02:00
Felix Schütt
8da2fdb6a5 Fix Windows build with local dependency 2022-09-13 18:13:54 +02:00
Felix Schütt
d840b5c5f6 Fix unit test with proper compiled .wasm file 2022-09-07 18:41:06 +02:00
Felix Schütt
759b2f6198 Add (non-working) unit test 2022-08-05 12:35:31 +02:00
Syrus Akbary
a419ccdf52 Move Webassembly objects to Store and remove Context
Co-authored-by: ptitSeb <sebastien.chev@gmail.com>
Co-authored-by: Manos Pitsidianakis <manos@wasmer.io>
2022-07-19 15:31:51 +03:00
Manos Pitsidianakis
eed0327101 Update c-api examples to Context API 2022-07-19 15:31:51 +03:00
Manos Pitsidianakis
34a6511e16 Port C API to new Context API 2022-07-19 15:31:51 +03:00
Manos Pitsidianakis
e9d54e130c Remove engine-dylib 2022-06-16 16:57:45 +03: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
Ivan Enderlin
3d66a2e360 feat: Rename wasmer-engine-native to wasmer-engine-dylib. 2021-05-28 14:13:24 +02:00
Ivan Enderlin
79d5f20301 feat: Rename wasmer-engine-native to wasmer-engine-shared-object. 2021-05-28 14:13:24 +02:00
Ivan Enderlin
23e52b7c1d !fixup 2021-05-27 13:05:21 +02:00
Ivan Enderlin
e5a784a006 feat: Rename wasmer-engine-jit to wasmer-engine-universal.
This (small) patch renames the `wasmer-engine-jit` crate into
`wasmer-engine-universal`.
2021-05-25 16:12:06 +02:00
Syrus Akbary
2e90db6967 Addressed comments 2021-05-18 14:32:21 -07:00
Syrus Akbary
71176cca7a Unified C API tests 2021-05-15 09:15:50 -07:00
Mark McCaskey
bc8cb68d84 Update examples to not free things cast from extern 2021-03-30 08:47:18 -07:00
jubianchi
52901850a9 chore: Build Wasmer on musl
Closes #1482
Closes #1766
2021-03-03 17:07:47 +01:00
Ivan Enderlin
2df343dc70 test(c-api) Test WASI captured stdout API. 2021-01-28 11:25:42 +01:00
Simon Warta
010f5fb597 Fix spelling Web Assembly -> WebAssembly 2021-01-03 22:01:26 +01:00
Mark McCaskey
d44116251f Remove debug code from multi.c 2020-12-18 07:13:38 -08: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
Ivan Enderlin
042e6ffa73 test(c-api) This is already a unit test in the wat module. 2020-12-11 10:06:34 +01:00
Syrus Akbary
44c987694d Improved formatting of Makefile 2020-12-04 19:52:15 -08:00
Syrus Akbary
5666d01ab3 Removed deprecated dir Makefile 2020-12-04 19:50:05 -08:00
Syrus Akbary
56fa494128 Deleted binaries 2020-12-04 19:47:31 -08:00
Syrus Akbary
0655767477 Deleted unused files 2020-12-04 19:45:12 -08:00
Syrus Akbary
79fb698c15 Remove dependency on cmake 2020-12-04 13:39:44 -08:00
Mark McCaskey
fee319a0f3 Update lib/c-api/tests/wasm_c_api/test-wat2wasm.c
Co-authored-by: nlewycky <nick@wasmer.io>
2020-12-01 12:26:28 -08:00