Commit Graph

128 Commits

Author SHA1 Message Date
af5052598a chore(c-api) Update headers. 2021-01-28 09:15:25 +01:00
95887af4da Include 'extern "C"' in our C header files when included in a C++ build. 2021-01-27 11:41:31 -08:00
4688d9b369 chore(c-api) Disable wasi_config_capture_stdin for the moment`. 2021-01-26 16:21:55 +01:00
79e55927b4 chore(c-api) Update headers. 2021-01-26 14:28:12 +01:00
361ea40042 chore(c-api) Update headers. 2021-01-26 13:19:20 +01:00
434285c0f9 fix(c-api) Use uppercase enum variants for constants of wasi_version_t. 2021-01-26 13:11:44 +01:00
924ffd8797 Prepare for 1.0.1 release 2021-01-12 08:08:19 -08:00
bc73789cc0 Prepare for 1.0.0 release 2021-01-05 06:21:03 -08:00
2d1c03bea0 Prepare for 1.0.0-rc1 release 2020-12-23 11:17:07 -08:00
dd226b1dab Add fixes from publishing 2020-12-16 10:53:09 -08:00
95eff687d7 chore(c-api) Update the header files. 2020-12-14 16:31:26 +01:00
b045b415f6 chore(c-api) Update the header files. 2020-12-14 13:42:29 +01:00
f75eb29620 chore(c-api) Update the header files. 2020-12-14 11:17:46 +01:00
2ce2c9c7d5 feat(c-api) Add the WASMER_VERSION_{MAJOR|MINOR|PATCH|PRE} constants in C. 2020-12-11 11:03:01 +01:00
fdeb4a6845 feat(c-api) Add the WASMER_VERSION constant in C. 2020-12-11 10:51:40 +01:00
18f388df9a Merge branch 'master' into feat-c-api-version 2020-12-11 10:35:26 +01:00
62fa2e506e chore: update wamser_wasm.h 2020-12-10 18:42:41 +01:00
685ef32c29 chore(c-api) Update the header files. 2020-12-10 17:08:32 +01:00
98a283f327 chore: Add a target to test all the C examples 2020-12-04 18:57:10 +01:00
cd55746864 Update docs on wat2wasm function 2020-12-01 12:28:18 -08:00
3e4b416909 Update lib/c-api/wasmer_wasm.h
Co-authored-by: nlewycky <nick@wasmer.io>
2020-12-01 12:26:36 -08:00
deec77d2df Fix memory leak in wat2wasm function 2020-12-01 11:41:28 -08:00
d0c44c6491 Merge pull request #1842 from wasmerio/host-env-prototype-export-change 2020-11-30 15:41:50 -08:00
40eec3fbd6 Address feedback: misc clean ups 2020-11-25 14:19:29 -08:00
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
de6cb9c4c4 Merge branch 'master' into feature/host-env-prototype 2020-11-20 15:54:35 -08:00
2d2b9069c7 Fix comments 2020-11-18 11:05:18 -08:00
afbaf129b8 Added deprecated flag to the wasm c api crate 2020-11-18 09:59:12 -08:00
3580f165e8 Rename WasmerEnv::finish to WasmerEnv::init_with_instance 2020-11-17 17:14:11 -08:00
655ac093a2 Fix up helpers generated by WasmerEnv; add unchecked variant 2020-11-17 11:19:42 -08:00
2690e5e8f6 Merge branch 'master' into feature/host-env-prototype 2020-11-16 15:13:29 -08:00
2e52e1139b chore(c-api) Update wasmer_wasm.h. 2020-11-16 15:19:17 +01:00
1d208af530 test(c-api) Create a tests/wasmer_wasm.h file.
Remove the `build.rs` hack to add helper functions that are used only
in our tests. Now the tests can use the `tests/wasmer_wasm.h` file,
which simplifies the test workflow: No need to hack the build script
or anything if we want to add a helper function.
2020-11-03 10:41:00 +01:00
059dfceb60 chore(c-api) Update the header files. 2020-11-02 17:46:36 +01:00
591691bc17 Merge #1765
1765: doc(c-api) Update documentation. r=Hywan a=Hywan

# Description

This patch adds documentation to the  `engine.rs` module.

# Review

- [ ] ~Add a short description of the the change to the CHANGELOG.md file~ not necessary


Co-authored-by: Ivan Enderlin <ivan@mnt.io>
2020-10-30 10:05:52 +00:00
be3ab95688 Add error handling to host init logic 2020-10-28 17:39:37 -07:00
adc40aeae3 Merge branch 'master' into feature/add-table-example 2020-10-27 11:57:08 -07:00
ce525e7e90 doc(c-api) Update documentation. 2020-10-27 13:53:47 +01:00
1b3254cf6a Move the generated-by comment up to the first comment. 2020-10-23 11:16:30 -07:00
8ab49df7ab Ahem. 2020-10-23 11:15:31 -07:00
9085480ad0 Update the generated file too, of course. 2020-10-23 11:14:06 -07:00
729a044c75 Add misc updates from feedback 2020-10-21 16:34:27 -07:00
6d326233f7 Merge branch 'master' into fix/create-exe-genearted-code-bugs 2020-10-19 10:03:05 -07:00
1ee99d394c Address feedback and fix small issue with cfg logic 2020-10-16 17:38:59 -07:00
d7d40e542f Merge branch 'master' into feat-c-api-update-wasm-h 2020-10-16 10:18:46 +02:00
c5d5ac7bfe Merge #1693
1693: Add `wasmer create-exe` r=MarkMcCaskey a=MarkMcCaskey

This adds the `wasmer create-exe` subcommand.  This subcommand is a combination of `wasmer compile --object-file` and linking that compiled Wasm with a main function and libwasmer.  Put more plainly: it lets us transform Wasm modules into native executables in one step.

In order for this to work we need:
- [x] Ship wasm.h with Wasmer or use different mechanism to find it
- [x] Ship wasmer_wasm.h with Wasmer
- [x] Requires up to date libwasmer... had to build one and copy it over, may fail in CI because of this... will be fixed with next release though
- [x] More gracefully handle wasmer installed without WASMER_DIR, etc (even if just error messages, should be tested)
- [x] Add tests

# Review

- [ ] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Mark McCaskey <mark@wasmer.io>
Co-authored-by: Mark McCaskey <5770194+MarkMcCaskey@users.noreply.github.com>
2020-10-13 21:46:16 +00:00
f866ea39fd fixup 2020-10-12 18:02:45 +02:00
b9f98ce1f6 feat(c-api) Update .h files. 2020-10-12 17:54:21 +02:00
437426d8b1 feat(c-api) Update wasmer_wasm.h. 2020-10-12 13:34:55 +02:00
ba7b24f696 Add --dir and --mapdir support to native executable 2020-10-09 17:38:14 -07:00