Commit Graph

934 Commits

Author SHA1 Message Date
Ivan Enderlin
1c0708df33 fix(c-api) Add missing JIT symbol. 2020-09-28 15:39:33 +02:00
Ivan Enderlin
f61a11526c chore(c-api) Use original cbindgen instead of our fork. 2020-09-28 15:33:42 +02:00
Ivan Enderlin
04ef295a1d chore(c-api) Regenerate wasmer_wasm.h. 2020-09-28 14:52:55 +02:00
Ivan Enderlin
b59db4cee2 feat(c-api) wasmer_wasm.h includes wasm.h. 2020-09-28 14:52:27 +02:00
Ivan Enderlin
8f627d9834 feat(c-api) Instruct cbindgen to ignore all functions and types defined in wasm.h. 2020-09-28 14:49:44 +02:00
Ivan Enderlin
40865799e6 feat(c-api) Don't create a module for byte and frame. 2020-09-28 14:02:02 +02:00
Mark McCaskey
e23ff69594 Merge branch 'master' into feature/engine-object-file 2020-09-25 11:07:25 -07:00
Mark McCaskey
c29a259679 Add rlib as a crate-type for wasmer-c-api
This is how `wasmer-runtime-c-api` was before and seems to fix a use
case that users relied on
2020-09-24 12:00:58 -07:00
Ivan Enderlin
174b03f4e9 feat(c-api) Use our fork of cbindgen.
Our fork contains incoming PR. It helps for example to skip struct
fields.
2020-09-24 16:15:04 +02:00
Ivan Enderlin
1a0527af78 feat(c-api) Move all types into their own modules. 2020-09-24 11:41:04 +02:00
Ivan Enderlin
44559a9f04 feat(c-api) Move as_extern APIs into the externals module. 2020-09-24 09:48:56 +02:00
Ivan Enderlin
ebcd59de2b feat(c-api) Extract all macros into their own module. 2020-09-24 09:48:39 +02:00
Ivan Enderlin
50fbb9766d feat(c-api) Move instance into its own module. 2020-09-24 09:19:53 +02:00
Ivan Enderlin
9b292ad9a7 feat(c-api) Move module into its own module. 2020-09-24 09:10:03 +02:00
Ivan Enderlin
7bb7684823 feat(c-api) Move value into its own module. 2020-09-24 09:06:37 +02:00
Ivan Enderlin
e7f06330c6 feat(c-api) Move function into its own module. 2020-09-24 08:56:28 +02:00
Ivan Enderlin
95fa49d92d feat(c-api) Move table into its own module. 2020-09-24 08:51:37 +02:00
Ivan Enderlin
bc664b011d feat(c-api) Move memory into its own module. 2020-09-22 17:21:19 +02:00
Ivan Enderlin
b63ce6e2cf feat(c-api) Extract global into its own module. 2020-09-22 17:15:52 +02:00
Ivan Enderlin
5b72815a00 feat(c-api) Extract engine and store into their own module. 2020-09-22 17:08:57 +02:00
Ivan Enderlin
d0de895efc doc(c-api) Clear README.md and symlink wasm.h. 2020-09-22 17:02:12 +02:00
Ivan Enderlin
3514988462 feat(c-api) Generate wasmer_wasm.h automatically. First draft. 2020-09-22 16:54:22 +02:00
Ivan Enderlin
9e8b80c2f6 feat(c-api) Ensure Rust documentation is used as C's. 2020-09-22 13:18:18 +02:00
Ivan Enderlin
a2ae54b446 chore(c-api) Update the header files. 2020-09-22 13:15:12 +02:00
Ivan Enderlin
8c03da87a9 feat(c-api) Reorganize the build.rs script. 2020-09-22 13:14:48 +02:00
Ivan Enderlin
1e4bed9b4f Merge branch 'master' into feat-c-api-deprecations 2020-09-22 09:48:41 +02:00
Ivan Enderlin
2ac20265a4 chore(c-api) Update header files. 2020-09-22 09:44:42 +02:00
Ivan Enderlin
40db7d6efc doc(c-api) Reorganize doxygen. 2020-09-22 09:44:11 +02:00
Ivan Enderlin
a6e06278d8 doc(c-api) Reorganize the documentation. 2020-09-22 09:35:57 +02:00
Ivan Enderlin
7cafae2b96 feat(c-api) Reorganize the crate to put the Wasmer C API as deprecated code. 2020-09-22 09:35:01 +02:00
bors[bot]
e88a341074 Merge #1639
1639: feat(c-api) Implement `wasm_importtype_delete` r=MarkMcCaskey a=Hywan

This PR implements `wasm_importtype_delete`. Thoughts @MarkMcCaskey?

Co-authored-by: Ivan Enderlin <ivan@mnt.io>
2020-09-21 22:07:49 +00:00
Ivan Enderlin
dfd50ee6ec feat(c-api) Implement wasm_importtype_delete. 2020-09-21 15:20:26 +02:00
Ivan Enderlin
da69eca99b test(c-api) Update CMake to match all Wasm C API examples. 2020-09-18 10:11:09 +02:00
Ivan Enderlin
54bece03f4 fix(c-api) Remove the trampoline module since it's not used. 2020-09-17 08:40:50 +02:00
Mark McCaskey
ead9532004 Prepare for 1.0.0-alpha3 release 2020-09-14 13:12:56 -07:00
Syrus
2cd12213fb Standardize Cargo files of all crates 2020-09-13 22:11:16 +03:00
Mark McCaskey
1ee2ba30a2 Prepare for 1.0.0-alpha02.0 release 2020-09-11 14:40:25 -07:00
Jihyun Yu
3d1675dd39 wasmer_instantiate: validate import params 2020-09-09 12:57:23 +09:00
Jihyun Yu
3361c21ccc wasmer_instance_call: allow null params
allow null params if params_len is zero
2020-09-09 01:30:01 +09:00
Mark McCaskey
2a366e7de9 Clean up 2020-08-28 14:56:49 -07:00
Mark McCaskey
485cc1dc7e Fix things up, get things working 2020-08-28 14:54:20 -07:00
Mark McCaskey
28aead6a50 Add engine object-file (WIP) 2020-08-26 13:49:47 -07:00
Mark McCaskey
e06ca4ffd2 Prepare for 1.0.0-alpha01.0 release
This is the first alpha release of `1.0.0`: expect breaking changes.

The version suffix `alpha01.0` was chosen so that we can ship updates
that automatically update with the latter number and can prevent
auto-updates by incrementing the former number (which is not actually
a number as far as semver is concerned).

Also because crates.io sorts versions lexicographically, it will
display the wrong readme if we get to alpha10, so we pad with an extra
0 just in case we need more than 9 releases of alpha.
2020-08-14 16:08:44 -07:00
Mark McCaskey
6e974b92cd Run cargo fmt 2020-08-13 18:12:43 -07:00
Mark McCaskey
5049c543dc Rename wasm-common crate to wasmer-types 2020-08-13 17:59:26 -07:00
Nick Lewycky
fadd5d6699 Remove nearly-all mentions of reborn. 2020-08-13 11:32:14 -07:00
Mark McCaskey
8a9ac6ce59 Add helper function to get the start function 2020-08-12 18:03:57 -07:00
Mark McCaskey
cba35df3f1 Use wasi_env_set_instance instead of wasi_env_set_memory 2020-08-12 17:32:28 -07:00
Mark McCaskey
892fb4efcf Make caller responsible for allocation array for getting WASI imports 2020-08-12 17:08:58 -07:00
Mark McCaskey
2e36c8e63b Clean up and simplify API: explicit version no longer required 2020-08-12 13:09:58 -07:00