Skip to content

Conversation

alexcrichton
Copy link
Member

I'd like to write some fancier tests soon for this, but I'm not a fan of writing C, so this commit starts to fill out the C++ API for components by adding a few wrapper classes. Like the rest of the C++ API this is all built as a wrapper around the C API.

This commit introduces a Component type and an ExportIndex type to go along with it. This binds the component.h header file in C++. This also starts a convention of capi methods to access the underlying pointer/value as a conventional way to mix the C/C++ APIs which will allow gradually migrating tests to C++.

I'd like to write some fancier tests soon for this, but I'm not a fan of
writing C, so this commit starts to fill out the C++ API for components
by adding a few wrapper classes. Like the rest of the C++ API this is
all built as a wrapper around the C API.

This commit introduces a `Component` type and an `ExportIndex` type to
go along with it. This binds the `component.h` header file in C++. This
also starts a convention of `capi` methods to access the underlying
pointer/value as a conventional way to mix the C/C++ APIs which will
allow gradually migrating tests to C++.
@alexcrichton alexcrichton requested a review from a team as a code owner October 17, 2025 19:56
@alexcrichton alexcrichton requested review from dicej and removed request for a team October 17, 2025 19:56
@github-actions github-actions bot added the wasmtime:c-api Issues pertaining to the C API. label Oct 17, 2025
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.

1 participant