Skip to content

Conversation

@GordonSmith
Copy link
Collaborator

…ations

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-cpp dependency and implements C++ binding generation logic
  • Registers new VS Code command wit-idl.generateBindingsCpp with 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)

@GordonSmith GordonSmith merged commit 84e63a6 into bytecodealliance:main Dec 11, 2025
10 checks passed
@GordonSmith GordonSmith deleted the CPP_BINDINGS branch December 11, 2025 21:55
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant