feat: add C++ bindings generation support and update related configur…#103
Merged
GordonSmith merged 1 commit intobytecodealliance:mainfrom Dec 11, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds C++ bindings generation support to the VS Code WIT extension, enabling users to generate C++ language bindings from WIT (WebAssembly Interface Types) files. The implementation follows the existing pattern used for other supported languages (Rust, C, C#, Go, MoonBit).
Key Changes:
- Adds
wit-bindgen-cppdependency and implements C++ binding generation logic - Registers new VS Code command
wit-idl.generateBindingsCppwith appropriate UI integration - Updates documentation to reflect C++ support alongside existing languages
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| wit-bindgen-wasm/src/lib.rs | Implements C++ bindings generation functions following existing language patterns, adds "cpp" and "c++" language matching |
| wit-bindgen-wasm/README.md | Documents C++ as a supported language option in the API documentation |
| wit-bindgen-wasm/Cargo.toml | Adds wit-bindgen-cpp 0.49 dependency |
| wit-bindgen-wasm/Cargo.lock | Updates lock file with wit-bindgen-cpp and its transitive dependencies |
| src/extension.ts | Registers the generateBindingsCpp command and adds it to subscriptions |
| package.json | Adds command definition, command palette entry, and editor context menu item for C++ bindings |
| .vscode/settings.json | Adds unrelated IDE configuration (ecl.launchConfiguration) |
…ations Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
16184a2 to
4c55396
Compare
GordonSmith
pushed a commit
that referenced
this pull request
Dec 11, 2025
🤖 I have created a release *beep* *boop* --- ## [0.3.20](wit-idl-v0.3.19...wit-idl-v0.3.20) (2025-12-11) ### Features * add C++ bindings generation support and update related configur… ([#103](#103)) ([84e63a6](84e63a6)) * add support for generating Markdown documentation and update re… ([#104](#104)) ([65b0f49](65b0f49)) * enhance CI workflows with caching for Node.js and Rust dependen… ([#105](#105)) ([112963a](112963a)) ### Bug Fixes * add context to WIT content parsing errors ([2772d4d](2772d4d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…ations