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
Ivan Enderlin
8899509996
Merge branch 'master' into test-c-api
2020-12-01 13:54:58 +01:00
Ivan Enderlin
f2a2cf4265
Merge branch 'master' into test-c-api
2020-12-01 11:37:41 +01:00
Ivan Enderlin
7973a965fb
Merge branch 'master' into fix-vm-leak
2020-12-01 10:08:21 +01:00
Mark McCaskey
4ef3286f2e
Merge branch 'master' into feature/host-env-prototype
2020-11-30 16:52:34 -08:00
Mark McCaskey
d0c44c6491
Merge pull request #1842 from wasmerio/host-env-prototype-export-change
2020-11-30 15:41:50 -08:00
Mark McCaskey
03410c15a1
Rename EngineExport to Export
2020-11-30 12:32:53 -08:00
Ivan Enderlin
37240bdc10
test(c-api) Start testing the instance module.
2020-11-30 16:56:56 +01:00
Ivan Enderlin
eb01733839
doc(c-api) Document the instance module.
2020-11-30 16:56:45 +01:00
Ivan Enderlin
ca54997cbd
doc(c-api) Document the engine module.
2020-11-30 15:43:12 +01:00
Ivan Enderlin
34530306e6
test(c-api) Test the engine module.
2020-11-30 15:42:04 +01:00
Ivan Enderlin
5a71aceb45
doc(c-api) Document the engine module.
2020-11-30 15:41:54 +01:00
Ivan Enderlin
581ca917ad
doc(c-api) Document the module module.
2020-11-30 15:41:34 +01:00
Ivan Enderlin
a1f88ab576
doc(c-api) Document the module module.
2020-11-30 15:17:26 +01:00
Mark McCaskey
8669e92ed4
Move EngineExport to engine
2020-11-25 16:44:21 -08:00
Mark McCaskey
40eec3fbd6
Address feedback: misc clean ups
2020-11-25 14:19:29 -08:00
Mark McCaskey
7013163829
WIP attempt to make an Export wrapper type
...
I can't figure out how we can ever use the non-wrapped type though
2020-11-25 10:59:04 -08:00
Ivan Enderlin
d5c7b628be
Merge branch 'master' into fix-vm-leak
2020-11-23 17:37:21 +01:00
Syrus Akbary
475082e6e8
Merge branch 'master' into arm64
2020-11-20 21:13:56 -08:00
Mark McCaskey
de6cb9c4c4
Merge branch 'master' into feature/host-env-prototype
2020-11-20 15:54:35 -08:00
Mark McCaskey
6826c6d844
Update changelog
2020-11-20 14:39:41 -08:00
Mark McCaskey
eeed1b9124
Rename LegacyEnv to UnsafeMutableEnv
2020-11-20 14:21:54 -08:00
Mark McCaskey
52ef800c8f
Use immutable env in the Wasm C API
2020-11-20 11:55:35 -08:00
Syrus Akbary
74e64b5889
Update libffi
2020-11-20 08:10:50 -08:00
Ivan Enderlin
ca89bd5d75
feat(api) Rename Extern::from_export to …::from_vm_export.
...
I hope this little change will clarify a little bit that the `Export`
passed to `Extern::from_vm_export` is not a `wasmer::Export` but a
`wasmer_vm::Export`.
2020-11-19 11:06:18 +01:00
Mark McCaskey
0e03544163
Merge branch 'feature/host-env-prototype' of github.com:wasmerio/wasmer into feature/host-env-prototype
2020-11-18 14:24:26 -08:00
Mark McCaskey
85169f6996
Add misc clean ups and corrections
2020-11-18 14:23:40 -08:00
Mark McCaskey
2065556c41
Merge branch 'master' into feature/host-env-prototype
2020-11-18 13:49:38 -08:00
Syrus
c4c57868ce
Fix tests on deprecated API
2020-11-18 12:05:31 -08:00
Syrus
2d2b9069c7
Fix comments
2020-11-18 11:05:18 -08:00
Syrus
5ba682d581
Only ship the compiler variable if there are available compilers
2020-11-18 09:59:32 -08:00
Syrus
afbaf129b8
Added deprecated flag to the wasm c api crate
2020-11-18 09:59:12 -08:00
Mark McCaskey
3580f165e8
Rename WasmerEnv::finish to WasmerEnv::init_with_instance
2020-11-17 17:14:11 -08:00
Mark McCaskey
655ac093a2
Fix up helpers generated by WasmerEnv; add unchecked variant
2020-11-17 11:19:42 -08:00