Ivan Enderlin
f5a57b84e9
fix(c-api) Exclude non-standard WASI API from wasmer.h.
2020-09-29 16:21:16 +02:00
Ivan Enderlin
8969756416
chore(c-api) Regenerate header files.
2020-09-29 16:08:54 +02:00
Ivan Enderlin
cab0854d99
feat(c-api) Rename the include-deprecated feature to deprecated, and change strategy.
...
When `deprecated` is enabled, the `deprecated` module is included in
the crate.
When `deprecated` is enabled, **only** the `wasmer.h*` header files
will be generated.
When `deprecated` is disabled, **only** the `wasmer_wasm.h` header
file will be generated.
2020-09-29 16:04:25 +02:00
Ivan Enderlin
d55b701e9d
feat(c-api) Make wasi_config_t and wasi_env_t opaque structures.
...
Removing `repr(C)` make them opaque for cbindgen. Which is perfect for what we want.
2020-09-29 16:01:52 +02:00
Ivan Enderlin
4165e389dc
feat(c-api) Use cbindgen@master.
...
Our PR to support `ManuallyDrop`, `MaybeUninit` and `Box` has been
merged, https://github.com/eqrion/cbindgen/pull/578 .
2020-09-29 14:16:09 +02:00
Mark McCaskey
bdbbe7ed2f
Add config support to wasm-c-api
2020-09-28 15:06:00 -07:00
Ivan Enderlin
ecfa22867e
test(c-api) Improve test outputs.
2020-09-28 17:17:25 +02:00
Ivan Enderlin
ffd1e6eddf
test(c-api) Split the test suites (deprecated and wasm-c-api).
2020-09-28 17:09:44 +02:00
Ivan Enderlin
570b174fb5
fix(c-api) Polish deprecated API.
2020-09-28 15:45:52 +02:00
Ivan Enderlin
579d00ffd7
chore(c-api) Fix a bad sed, woops.
2020-09-28 15:40:51 +02:00
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