MangoPeachGrape opened PR #10582 from MangoPeachGrape:c-api/cpp to bytecodealliance:main:
See discussion in #10566 for more context.
Folloving files have been moved without edits:
wasmtime-cpp/include/wasmtime.hh->/crates/c-api/include/wasmtime-cpp/tests/*->/crates/c-api/tests/wasmtime-cpp/examples/*->/examples/The CMakeLists.txt content is copied to
/crates/c-api/CMakeLists.txtwith slight adjustments. I haven't fully gone through and checked if everything from the old CMake file still makes sense.The tests inside
/crates/c-api/tests/seems to run when examples ("Test C-API" from CI) is executed.Added a CMake option to disable tests, feel free to let me know if this is not desired.
MangoPeachGrape requested fitzgen for a review on PR #10582.
MangoPeachGrape requested wasmtime-core-reviewers for a review on PR #10582.
MangoPeachGrape edited PR #10582:
See discussion in #10566 for more context.
Folloving files have been moved without edits:
wasmtime-cpp/include/wasmtime.hh->/crates/c-api/include/wasmtime-cpp/tests/*->/crates/c-api/tests/wasmtime-cpp/examples/*->/examples/The CMakeLists.txt content is copied to
/crates/c-api/CMakeLists.txtwith slight adjustments. I haven't fully gone through and checked if everything from the old CMake file still makes sense.The tests inside
/crates/c-api/tests/seem to run when examples ("Test C-API" from CI) is executed.Added a CMake option to disable tests, feel free to let me know if this is not desired.
alexcrichton submitted PR review:
Thanks for this! This looks pretty good to me, but I'd also want to test some more integration-y things before landing. To that end can you try a few things:
- Add a commit to this PR with "prtest:full" somewhere in the commit message so we can see the full CI run
- With a full run I want to double-check that the header file is present in the installation artifacts
- Mind updating
crates/c-api/README.mdwith a mention that the C++ API is present as well? I can also do this as a follow-up if you'd prefer.- With a full run I want to double-check that the docs here are present in the c-api docs.
alexcrichton created PR review comment:
Could this default to OFF but we be careful to pass it as ON in CI? Agreed though that this is good to have, thanks for adding this!
alexcrichton commented on PR #10582:
Also, after merging, I'll take on the bits of archiving the old repo.
MangoPeachGrape requested wasmtime-default-reviewers for a review on PR #10582.
MangoPeachGrape updated PR #10582.
MangoPeachGrape commented on PR #10582:
CI doesn't seem to have C++ compiler? Should a C++ compiler be a requirement, even when we don't build any C++ code?
alexcrichton commented on PR #10582:
Could this be updated to only require a C++ compiler for tests? For a normal build it shouldn't be required I think?
MangoPeachGrape updated PR #10582.
alexcrichton commented on PR #10582:
Ok nice looks like everything's integrated well, I can see the C++ tests running and I see
wasmtime.hhin the distribution artifacts as well. Can you double-check the docs though? I don't see the doxygen docs for the C++ API in the gh-pages artifact, just the C API. I suspect we need to tweakdoxygen.confa bit?
MangoPeachGrape updated PR #10582.
MangoPeachGrape commented on PR #10582:
Would it be preferred to only silence the undocumented warnings from
wasm.hhinstead of disabling it all together?
alexcrichton commented on PR #10582:
If possible, yeah, although I'm not sure if it's easy to configure doxygen as such.
MangoPeachGrape commented on PR #10582:
I was thinking of
EXCLUDE = wasm.hh, but now I realize that it obviously removes it from the output as well. What's better, excludewasm.hhand enable the warning, or keep it like it is now?
alexcrichton commented on PR #10582:
Excluding in this case I think may actually be ok because while it works I think we'll still want to steer users towards
wasmtime.hh. It's not like the C API where some utilities come from thewasm.hAPI and others fromwasmtime.h
MangoPeachGrape updated PR #10582.
alexcrichton submitted PR review:
Nice docs are looking great. Thank you again for working on this!
alexcrichton merged PR #10582.
Last updated: Dec 06 2025 at 06:05 UTC