alexcrichton opened PR #11880 from alexcrichton:cpp-components to bytecodealliance:main:
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
Componenttype and anExportIndextype to go along with it. This binds thecomponent.hheader file in C++. This also starts a convention ofcapimethods to access the underlying pointer/value as a conventional way to mix the C/C++ APIs which will allow gradually migrating tests to C++.<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton requested dicej for a review on PR #11880.
alexcrichton requested wasmtime-core-reviewers for a review on PR #11880.
alexcrichton updated PR #11880.
dicej submitted PR review.
alexcrichton merged PR #11880.
Last updated: Dec 06 2025 at 07:03 UTC