[39.0.0] Fill out type information for components in C API #11988
Merged
alexcrichton merged 2 commits intobytecodealliance:release-39.0.0from Nov 6, 2025
Merged
[39.0.0] Fill out type information for components in C API #11988alexcrichton merged 2 commits intobytecodealliance:release-39.0.0from
alexcrichton merged 2 commits intobytecodealliance:release-39.0.0from
Conversation
This commit adds a shared macro to simplify ownership management in the C++ API and to additionally have a uniform API across types. This is inspired by the component model work where I felt like I was copy/pasting quite a lot and wanted to cut down on that.
…11937) * Fill out type information for components in C API I've concluded that I'll want this for wasmtime-py so this fills out type reflection for various items in the C API. This then additionally extends the C++ API as well. prtest:full * Update crates/c-api/include/wasmtime/component/types/func.h Co-authored-by: Joel Dice <joel.dice@fermyon.com> --------- Co-authored-by: Joel Dice <joel.dice@fermyon.com>
pchickey
approved these changes
Nov 6, 2025
Contributor
pchickey
left a comment
There was a problem hiding this comment.
I don't really know C++ well enough to have a clue there but the C API looks great
6f8f631
into
bytecodealliance:release-39.0.0
172 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I'm hoping to use this in wasmtime-py for the next release, so this backports the two PRs necessary to get that working.