Skip to content

[39.0.0] Fill out type information for components in C API - #11988

Merged
alexcrichton merged 2 commits into
bytecodealliance:release-39.0.0from
alexcrichton:release-39.0.0
Nov 6, 2025
Merged

alexcrichton merged 2 commits into
bytecodealliance:release-39.0.0from
alexcrichton:release-39.0.0

Conversation

@alexcrichton

Copy link
Copy Markdown
Member

I'm hoping to use this in wasmtime-py for the next release, so this backports the two PRs necessary to get that working.

alexcrichton and others added 2 commits November 5, 2025 14:28
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 <[email protected]>

---------

Co-authored-by: Joel Dice <[email protected]>
@alexcrichton
alexcrichton requested a review from a team as a code owner November 5, 2025 22:29
@alexcrichton
alexcrichton requested review from pchickey and removed request for a team November 5, 2025 22:29
@github-actions github-actions Bot added the wasmtime:c-api Issues pertaining to the C API. label Nov 6, 2025

@pchickey pchickey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really know C++ well enough to have a clue there but the C API looks great

@alexcrichton
alexcrichton merged commit 6f8f631 into bytecodealliance:release-39.0.0 Nov 6, 2025
@alexcrichton
alexcrichton deleted the release-39.0.0 branch November 6, 2025 17:37
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

Development

Successfully merging this pull request may close these issues.

2 participants