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
Ivan Enderlin
619f9a9c52
doc(c-api) Fix links in DEVELOPMENT.md
...
Oops, bad Markdown syntax. This patch fixes it!
2020-11-17 13:37:05 +01:00
Mark McCaskey
a19705ae11
Remove free method, call finalizers in C API
2020-11-16 16:36:58 -08:00
Mark McCaskey
2690e5e8f6
Merge branch 'master' into feature/host-env-prototype
2020-11-16 15:13:29 -08:00
Ivan Enderlin
b2ea42d1d8
doc(c-api) Add links to wasm.h and its own annotation.
2020-11-16 16:02:15 +01:00
Ivan Enderlin
2e52e1139b
chore(c-api) Update wasmer_wasm.h.
2020-11-16 15:19:17 +01:00
Ivan Enderlin
287084aa3e
fix(c-api) Allow finalizer to be NULL.
2020-11-16 14:43:26 +01:00
Ivan Enderlin
d6af40bdd5
fix(c-api) wasm_functype_new frees params and results correctly.
2020-11-16 14:12:53 +01:00
Ivan Enderlin
1a1e38eaea
feat(c-api) Implement From<&wasm_valtype_t> for ValType.
2020-11-16 14:04:17 +01:00
Ivan Enderlin
24b9b1b2e7
fix(c-api) Remove a warning by handling a Result.
2020-11-16 11:33:31 +01:00
Ivan Enderlin
cb3367d377
fix(c-api) Remove a FFI-unsafe operation.
2020-11-16 11:24:48 +01:00
Ivan Enderlin
76d7c4ed1b
feat(c-api) Raise an error when wasm_module_deserialize fails.
2020-11-16 11:19:42 +01:00
Ivan Enderlin
ffad2d7bad
fix(c-api) Fix a typo.
2020-11-16 11:19:17 +01:00
Ivan Enderlin
0eab5926af
doc(c-api) Clarify how destructors work.
2020-11-16 11:14:54 +01:00
Ivan Enderlin
4feaac085c
doc(c-api) Clarify the Rust pattern to handle const *T.
2020-11-16 11:09:21 +01:00
Ivan Enderlin
03b34144bf
feat(c-api) wasm_functype_(params|results) handle null pointers.
2020-11-16 11:09:02 +01:00
Ivan Enderlin
cf9e2fbcdd
chore(c-api) Use Option<&T> rather than Option<NonNull<T>>.
2020-11-16 11:07:02 +01:00
Ivan Enderlin
10555eb01e
doc(c-api) Fix a typo.
2020-11-16 10:49:37 +01:00
Ivan Enderlin
e78114be70
fix(c-api) Add the own annotations for Wasmer specific API.
2020-11-16 10:49:37 +01:00
Ivan Enderlin
73244111a6
fix(c-api) Rewrite wasm_val_copy to use &mut and no unwrap.
2020-11-16 10:49:37 +01:00
Ivan Enderlin
d3c496f8a0
chore(c-api) Code clean up.
2020-11-16 10:49:37 +01:00
Ivan Enderlin
69c23fd78f
doc(c-api) Add the own annotation when necessary.
2020-11-16 10:49:37 +01:00
Ivan Enderlin
3a5fad1ac4
feat(c-api) wasm_module_validate handles null pointers + use into_slice() for bytes.
2020-11-16 10:49:37 +01:00
Ivan Enderlin
cf0098ffd0
feat(c-api) wasm_module_new handles null pointers + use into_slice() for bytes.
2020-11-16 10:49:37 +01:00
Ivan Enderlin
ce10285be2
fix(c-api) Remove done TODO.
2020-11-16 10:49:37 +01:00
Ivan Enderlin
152f1d980c
feat(c-api) wasm_instance_new handles null pointers.
2020-11-16 10:49:37 +01:00
Ivan Enderlin
35c4329150
feat(c-api) Generate errors when wasm_engine_new fails.
2020-11-16 10:49:37 +01:00
Ivan Enderlin
ba6115f348
feat(c-api) More functions handle null pointers + rename variables.
2020-11-16 10:49:37 +01:00
Ivan Enderlin
6f2957b4b3
feat(c-api) More functions handle null pointers.
2020-11-16 10:49:37 +01:00
Ivan Enderlin
5db1ab7c37
feat(c-api) More functions handle null pointers.
2020-11-16 10:49:37 +01:00
Ivan Enderlin
0ce3b27da1
feat(c-api) wasm_global_new handles null pointers.
2020-11-16 10:49:37 +01:00
Ivan Enderlin
e27ce51303
feat(c-api) wasm_func_call handles null pointers.
2020-11-16 10:49:37 +01:00
Ivan Enderlin
b42c699be0
feat(c-api) Support null pointers in wasm_func_new_with_env.
2020-11-16 10:49:37 +01:00
Ivan Enderlin
2735461caf
feat(c-api) wasm_func_new supports null pointers for its arguments.
2020-11-16 10:49:37 +01:00