Ivan Enderlin
c20261fe57
doc(c-api) Improve the crate's documentation.
2020-12-14 15:14:54 +01:00
Ivan Enderlin
b045b415f6
chore(c-api) Update the header files.
2020-12-14 13:42:29 +01:00
Ivan Enderlin
f4e3f2a627
feat(c-api) Add wasmer_version_(major,minor,patch,pre) functions.
2020-12-14 13:42:08 +01:00
Ivan Enderlin
f75eb29620
chore(c-api) Update the header files.
2020-12-14 11:17:46 +01:00
Ivan Enderlin
3a8a0d3ed9
feat(c-api) Implement the wasmer_version function.
...
When the `.h` files aren't accessible, it is useful to get a function
to retrieve the version of the Wasmer C API.
2020-12-14 11:13:55 +01:00
Ivan Enderlin
7f085e3e42
Merge branch 'master' into feat-c-api-version
2020-12-14 10:31:57 +01:00
bors[bot]
0bfc7a3714
Merge #1919
...
1919: test(c-api) Remove a useless test and update `inline-c` r=Hywan a=Hywan
# Description
Small clean up. This PR removes a duplicated test, and update `inline-c`.
# Review
- [ ] Add a short description of the the change to the CHANGELOG.md file
Co-authored-by: Ivan Enderlin <ivan@mnt.io >
2020-12-11 10:16:19 +00:00
Ivan Enderlin
2ce2c9c7d5
feat(c-api) Add the WASMER_VERSION_{MAJOR|MINOR|PATCH|PRE} constants in C.
2020-12-11 11:03:01 +01:00
Ivan Enderlin
fdeb4a6845
feat(c-api) Add the WASMER_VERSION constant in C.
2020-12-11 10:51:40 +01:00
Ivan Enderlin
18f388df9a
Merge branch 'master' into feat-c-api-version
2020-12-11 10:35:26 +01:00
Ivan Enderlin
d6d9e4edf5
chore(c-api) Update the Makefile to remove a test.
2020-12-11 10:10:09 +01:00
Ivan Enderlin
ce5b7900f1
chore(c-api) Update inline-c to 0.1.4.
2020-12-11 10:08:25 +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
bors[bot]
4f174f864a
Merge #1851
...
1851: test+doc(c-api): Test and document the C A PI r=Hywan a=Hywan
# Description
This PR improves the test suites and the documentation of the C API.
# Review
- [x] Add a short description of the the change to the CHANGELOG.md file
Co-authored-by: Ivan Enderlin <ivan@mnt.io >
Co-authored-by: jubianchi <julien@wasmer.io >
2020-12-11 09:01:38 +00:00
jubianchi
62fa2e506e
chore: update wamser_wasm.h
2020-12-10 18:42:41 +01:00
jubianchi
401b9e4db5
test(c-api) Add no_run to engine tests.
...
Because we test the C API with many features combination, we can't ensure tests will pass with every combination
2020-12-10 18:42:01 +01:00
Ivan Enderlin
90778f6d66
test(c-api) Change ignore to no_run.
2020-12-10 17:14:16 +01:00
Ivan Enderlin
685ef32c29
chore(c-api) Update the header files.
2020-12-10 17:08:32 +01:00
Ivan Enderlin
b5fb4d06f8
feat(c-api) Add the wasmer_version function.
2020-12-10 17:02:38 +01:00
Ivan Enderlin
bcf65008c4
test(c-api) Disable on doctest, it cannot run if JIT is disabled.
2020-12-10 16:44:35 +01:00
Ivan Enderlin
6d74163462
doc(c-api) Specify that the code does not panic.
2020-12-10 16:18:32 +01:00
Ivan Enderlin
6e7cd02425
doc(c-api) Specify when functions are Wasmer-specific.
2020-12-10 16:18:10 +01:00
Ivan Enderlin
4740202e90
test(c-api) Fix tests.
2020-12-10 16:14:13 +01:00
Ivan Enderlin
f8935b3561
Merge branch 'master' into test-c-api
2020-12-10 16:01:14 +01:00
jubianchi
044388ec57
fix: Fix test_set_host_global_immutable test
...
wasm_globaltype_new take ownership of its first argument, valtype. The test was freeing the valtype when it should not
2020-12-10 14:57:25 +01:00
Syrus Akbary
e9529c2c86
Update README.md
2020-12-05 10:46:26 -08: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
48a4298fd1
Merge branch 'master' into cmake-delete
2020-12-04 19:40:30 -08:00
Syrus Akbary
7d006a4610
Merge branch 'master' into c-examples
2020-12-04 16:06:56 -08:00
Syrus Akbary
e7bf70ff81
Fixed compilation issue
2020-12-04 15:13:48 -08:00
Syrus Akbary
79fb698c15
Remove dependency on cmake
2020-12-04 13:39:44 -08:00
Syrus Akbary
e32458335c
Fix capi tests for examples
2020-12-04 11:22:33 -08:00
jubianchi
98a283f327
chore: Add a target to test all the C examples
2020-12-04 18:57:10 +01:00
Syrus
39af046c04
Added make all command to c api examples
2020-12-04 03:18:58 -08:00
Syrus
4df7722f25
Fixed the c examples using the new api for wat2wasm
2020-12-04 03:15:44 -08:00
Syrus
13e6f29c29
Set compiler config to be owned (following wasm-c-api)
2020-12-04 02:39:19 -08:00
jubianchi
729f402fdb
chore: Add C examples
2020-12-04 09:10:35 +01:00
nlewycky
9ac62e1313
Fix typo in comment.
2020-12-03 14:36:34 -08:00
Mark McCaskey
947e7d394f
Prepare for 1.0.0-beta1 release
2020-12-01 17:15:46 -08:00
Mark McCaskey
cd55746864
Update docs on wat2wasm function
2020-12-01 12:28:18 -08:00
Mark McCaskey
3e4b416909
Update lib/c-api/wasmer_wasm.h
...
Co-authored-by: nlewycky <nick@wasmer.io >
2020-12-01 12:26:36 -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
Mark McCaskey
1cadf9af7f
Fix unrelated warnings in Wasm C API
2020-12-01 12:09:21 -08:00
Mark McCaskey
7b2d0d4037
Signal error condition and update tests
2020-12-01 12:06:41 -08:00
Mark McCaskey
deec77d2df
Fix memory leak in wat2wasm function
2020-12-01 11:41:28 -08:00
Ivan Enderlin
25bcc9b7fc
fixup
2020-12-01 15:29:41 +01:00
Ivan Enderlin
527b7061cc
fix(c-api) Fix memory leak in wasm_$name_vec_delete.
...
This patch does several things:
1. It applies our Rust patterns for C API by replacing the raw pointer
by `Option<Box<T>>`,
2. It allows `wasm_$name_vec_delete` to handle null pointer,
3. Because it takes ownership of the `wasm_$name_vec_t`, the pointer
is correctly dropped (which fix the memory leak).
2020-12-01 14:25:59 +01:00