I wrote a C/C++ FFI wrapper around the wit-bindgen parser interface. It enables you parse a WIT spec directly from C/C++ code and then examine parts of the AST. Perhaps someone around here will find it useful as well.
https://github.com/singlestore-labs/to-wit
Last updated: Dec 06 2025 at 06:05 UTC