Commit Graph

98 Commits

Author SHA1 Message Date
Nick Lewycky
197d0f7a49 Initial commit of C API for metering and middleware. 2021-02-09 01:20:34 -08:00
Nick Lewycky
fb429e0a6e Update the C API header files. 2021-02-04 19:53:41 -08:00
Ivan Enderlin
698a26c7fe fix(c-api) Restore a bug with wasi_get_imports.
We said that `wasi_get_imports` was taking ownership of
`wasi_env_t`. It wasn't. In 9e63ba9a25,
we have fixed this. But it creates another bug when `wasi_env_t` is
used _after_ for example when calling `wasi_env_read_stdout`.

So this patch reverts the bug fix. And we will discuss about how to
fix that later.
2021-02-02 13:42:29 +01:00
Ivan Enderlin
e5d5303b50 Merge branch 'master' into feat-c-api-wasi-unordered-imports 2021-02-02 12:17:01 +01:00
Ivan Enderlin
4725a5d623 Merge branch 'master' into feat-c-api-cross-compilation-2 2021-02-02 11:07:21 +01:00
Ivan Enderlin
b2bc62d43a chore(c-api) Update headers. 2021-02-02 09:23:37 +01:00
Ivan Enderlin
d48bc1e67e chore(c-api) Update headers. 2021-02-01 14:58:54 +01:00
Ivan Enderlin
0861b73974 Fix rebase. 2021-02-01 12:04:10 +01:00
Ivan Enderlin
1042dad5eb chore(c-api) Update headers. 2021-02-01 12:03:08 +01:00
Ivan Enderlin
5de7d71e84 chore(c-api) Update headers. 2021-02-01 12:02:10 +01:00
Ivan Enderlin
0ad4d319d6 chore(c-api) Update headers. 2021-02-01 12:01:00 +01:00
Ivan Enderlin
a6ce35b824 chore(c-api) Update headers. 2021-02-01 11:55:46 +01:00
Ivan Enderlin
cbc8b4a773 chore(c-api) Update headers. 2021-02-01 11:50:11 +01:00
Ivan Enderlin
7e757ded6b test(c-api) Simplify test by using wasm_name_new_from_string. 2021-01-29 15:04:40 +01:00
Ivan Enderlin
3c5692ca2f doc(c-api) Mark some types as unstable. 2021-01-29 14:39:59 +01:00
Ivan Enderlin
dc9f8fc82c chore(c-api) Update headers. 2021-01-29 14:34:59 +01:00
Ivan Enderlin
b201f12494 feat(c-api) Start implementing wasm_target_t, wasm_triple_t and wasm_cpu_features_t. 2021-01-28 17:26:15 +01:00
Ivan Enderlin
2f82d5536f feat(c-api) Rename the wasmer module to unstable. 2021-01-28 15:35:51 +01:00
Ivan Enderlin
ca7fc908b5 chore(c-api) Update headers. 2021-01-28 09:23:56 +01:00
Ivan Enderlin
1828d8ecff Merge branch 'master' into fix-c-api-wasi-version 2021-01-28 09:18:30 +01:00
Ivan Enderlin
af5052598a chore(c-api) Update headers. 2021-01-28 09:15:25 +01:00
Nick Lewycky
95887af4da Include 'extern "C"' in our C header files when included in a C++ build. 2021-01-27 11:41:31 -08:00
Ivan Enderlin
4688d9b369 chore(c-api) Disable wasi_config_capture_stdin for the moment`. 2021-01-26 16:21:55 +01:00
Ivan Enderlin
79e55927b4 chore(c-api) Update headers. 2021-01-26 14:28:12 +01:00
Ivan Enderlin
361ea40042 chore(c-api) Update headers. 2021-01-26 13:19:20 +01:00
Ivan Enderlin
434285c0f9 fix(c-api) Use uppercase enum variants for constants of wasi_version_t. 2021-01-26 13:11:44 +01:00
Mark McCaskey
924ffd8797 Prepare for 1.0.1 release 2021-01-12 08:08:19 -08:00
Mark McCaskey
bc73789cc0 Prepare for 1.0.0 release 2021-01-05 06:21:03 -08:00
Mark McCaskey
2d1c03bea0 Prepare for 1.0.0-rc1 release 2020-12-23 11:17:07 -08:00
Mark McCaskey
dd226b1dab Add fixes from publishing 2020-12-16 10:53:09 -08:00
Ivan Enderlin
95eff687d7 chore(c-api) Update the header files. 2020-12-14 16:31:26 +01:00
Ivan Enderlin
b045b415f6 chore(c-api) Update the header files. 2020-12-14 13:42:29 +01:00
Ivan Enderlin
f75eb29620 chore(c-api) Update the header files. 2020-12-14 11:17:46 +01:00
Ivan Enderlin
2ce2c9c7d5 feat(c-api) Add the WASMER_VERSION_{MAJOR|MINOR|PATCH|PRE} constants in C. 2020-12-11 11:03:01 +01:00
Ivan Enderlin
fdeb4a6845 feat(c-api) Add the WASMER_VERSION constant in C. 2020-12-11 10:51:40 +01:00
Ivan Enderlin
18f388df9a Merge branch 'master' into feat-c-api-version 2020-12-11 10:35:26 +01:00
jubianchi
62fa2e506e chore: update wamser_wasm.h 2020-12-10 18:42:41 +01:00
Ivan Enderlin
685ef32c29 chore(c-api) Update the header files. 2020-12-10 17:08:32 +01:00
jubianchi
98a283f327 chore: Add a target to test all the C examples 2020-12-04 18:57:10 +01: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
deec77d2df Fix memory leak in wat2wasm function 2020-12-01 11:41:28 -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
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
Mark McCaskey
de6cb9c4c4 Merge branch 'master' into feature/host-env-prototype 2020-11-20 15:54:35 -08:00
Syrus
2d2b9069c7 Fix comments 2020-11-18 11:05:18 -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