Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update WebAssembly C API submodule to latest commit. #2579

Merged
merged 2 commits into from
Jan 14, 2021

Conversation

peterhuene
Copy link
Member

This PR updates the WebAssembly C API submodule (for wasm.h) to the
latest commit out of master.

This fixes the behavior of wasm_name_new_from_string such that it no longer
copies the null character into the name, which caused unexpected failures when
using the Wasmtime linker as imports wouldn't resolve when the null was
present.

Along with this change were breaking changes to wasm_func_call, the host
callback signatures, and wasm_instance_new to take a vector type instead of a
pointer to an unsized array.

As a result, Wasmtime language bindings based on the C API will need to be
updated once this change is pulled in.

Fixes #2211.
Fixes #2131.

This commit updates the WebAssembly C API submodule (for `wasm.h`) to the
latest commit out of master.

This fixes the behavior of `wasm_name_new_from_string` such that it no longer
copies the null character into the name, which caused unexpected failures when
using the Wasmtime linker as imports wouldn't resolve when the null was
present.

Along with this change were breaking changes to `wasm_func_call`, the host
callback signatures, and `wasm_instance_new` to take a vector type instead of a
pointer to an unsized array.

As a result, Wasmtime language bindings based on the C API will need to be
updated once this change is pulled in.

Fixes bytecodealliance#2211.
Fixes bytecodealliance#2131.
@peterhuene
Copy link
Member Author

Looks like I missed some new macros in wasm.h for the docs. I'll update.

@github-actions github-actions bot added the wasmtime:c-api Issues pertaining to the C API. label Jan 13, 2021
@github-actions
Copy link

Subscribe to Label Action

cc @peterhuene

This issue or pull request has been labeled: "wasmtime:c-api"

Thus the following users have been cc'd because of the following labels:

  • peterhuene: wasmtime:c-api

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

@alexcrichton alexcrichton merged commit f94db65 into bytecodealliance:main Jan 14, 2021
alexcrichton added a commit to alexcrichton/wasmtime-py that referenced this pull request Jan 14, 2021
alexcrichton added a commit to alexcrichton/wasmtime-go that referenced this pull request Jan 14, 2021
Updating these bindings to account for bytecodealliance/wasmtime#2579
alexcrichton added a commit to bytecodealliance/wasmtime-py that referenced this pull request Jan 14, 2021
alexcrichton added a commit to bytecodealliance/wasmtime-go that referenced this pull request Jan 14, 2021
* Update for recent C API changes

Updating these bindings to account for bytecodealliance/wasmtime#2579

* Appease go vet
@peterhuene peterhuene deleted the update-c-api branch March 11, 2021 22:10
X-leaf7 added a commit to X-leaf7/wasmtime-go that referenced this pull request Jun 24, 2024
* Update for recent C API changes

Updating these bindings to account for bytecodealliance/wasmtime#2579

* Appease go vet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wasmtime:c-api Issues pertaining to the C API.
Projects
None yet
2 participants