Yury Delendik
876d5e1075
[wasmtime-api] Multi value api support ( #448 )
2019-10-23 14:09:27 -05:00
Alex Crichton
50beb21b63
Add a missing api to the wasm C API ( #433 )
...
This was used when [prototyping] but I found it wasn't implemented yet!
[prototyping]: https://github.com/dtolnay/watt/issues/2#issuecomment-543007365
2019-10-17 17:14:15 -07:00
Dan Gohman
8e1b44b29c
Make more code work with no_std. ( #407 )
...
* Make more code work with no_std.
no_std support is still incomplete, but this patch takes care of the
bulk of the straightforward parts.
2019-10-08 16:53:32 -07:00
Peter Huene
cb38b48156
Fix memory leaks in extern conversion functions in C API. ( #395 )
...
This fixes the memory leaks in the following functions which should not be
returning "owned" pointers:
* `wasm_extern_as_func`
* `wasm_func_as_extern`
* `wasm_extern_as_global`
* `wasm_global_as_extern`
* `wasm_extern_as_memory`
* `wasm_extern_as_table`
Additionally, this commit implements the `wasm_memory_as_extern` and
`wasm_table_as_extern` functions.
Fixes #394 .
2019-10-02 05:54:36 -07:00
Andrew Brown
68de2247bc
Avoid errors when converting V128 for the wasm-c-api
...
For this to work the wasm-c-api must add support for the V128 type (e.g. through __uint128_t)
2019-09-26 15:46:18 -07:00
Peter Huene
622a630acd
Implement wasm_module_imports. ( #384 )
...
This commit implements `wasm_module_imports` and a few related APIs so that
import information can be read about a module.
2019-09-26 13:57:33 -05:00
Yury Delendik
b41e918ec3
[wasmtime-api] Fixes wasm_exporttype_type leak
2019-09-25 21:19:34 -07:00
Yury Delendik
6a41417b52
Add examples; refactor HostRef
2019-09-18 09:15:14 -07:00
Yury Delendik
de1c0f63eb
Table operation; refactor Callable
2019-09-12 17:11:34 -07:00
Yury Delendik
c94c383a7c
[wasmtime-api] Implementation of classes for run-{reflect,start,global,memory}-c ( #295 )
...
Implements apis for reflect-c, start-c, run-global-c and run-memory-c
2019-08-26 10:07:02 -05:00
Yury Delendik
f88e92a57c
Better Wasmtime API for embedder ( #287 )
...
* Migrate wasm-rust-api code to wasmtime.
2019-08-21 00:35:26 -07:00