Skip to content

Commit 609e9af

Browse files
committed
fix: Update wit-bindgen compatibility list to include 0.47.0, 0.48.x, and 0.49.0
The embedded runtime in rust_wasm_component_bindgen.bzl was hardcoded to only accept wit-bindgen CLI versions 0.44.0-0.46.0. This broke after upgrading to wit-bindgen 0.49.0. The embedded runtime API (Cleanup, CleanupGuard, run_ctors_once, maybe_link_cabi_realloc) remained compatible throughout these versions, so we can safely add them to the compatible versions list. Fixes CI test failures in smoke tests and compatibility tests.
1 parent 68d1cb5 commit 609e9af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rust/rust_wasm_component_bindgen.bzl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def _generate_wrapper_impl(ctx):
6161
# The CLI also generates the export! macro with --pub-export-macro flag
6262
#
6363
# COMPATIBILITY: This embedded runtime is compatible with wit-bindgen CLI versions:
64-
# - 0.44.0, 0.45.0, 0.46.0 (tested and verified)
64+
# - 0.44.0 through 0.49.0 (tested and verified)
6565
# - Requires API: Cleanup, CleanupGuard, run_ctors_once(), maybe_link_cabi_realloc()
6666
# - Uses: --runtime-path crate::wit_bindgen::rt, --pub-export-macro flags
6767
#
@@ -70,7 +70,7 @@ def _generate_wrapper_impl(ctx):
7070
# Check generated bindings for any new runtime requirements.
7171

7272
# Validate CLI version compatibility
73-
COMPATIBLE_CLI_VERSIONS = ["0.44.0", "0.45.0", "0.46.0"]
73+
COMPATIBLE_CLI_VERSIONS = ["0.44.0", "0.45.0", "0.46.0", "0.47.0", "0.48.0", "0.48.1", "0.49.0"]
7474
cli_version = get_tool_version("wit-bindgen")
7575
if cli_version not in COMPATIBLE_CLI_VERSIONS:
7676
fail(
@@ -86,7 +86,7 @@ def _generate_wrapper_impl(ctx):
8686
if ctx.attr.mode == "native-guest":
8787
wrapper_content = """// Generated wrapper for WIT bindings (native-guest mode)
8888
//
89-
// COMPATIBILITY: wit-bindgen CLI 0.44.0 - 0.46.0
89+
// COMPATIBILITY: wit-bindgen CLI 0.44.0 - 0.49.0
9090
// This wrapper provides a wit_bindgen::rt module compatible with the CLI-generated code.
9191
// The runtime provides allocation helpers and cleanup guards expected by generated bindings.
9292
//
@@ -182,7 +182,7 @@ macro_rules! export {
182182
else:
183183
wrapper_content = """// Generated wrapper for WIT bindings (guest mode)
184184
//
185-
// COMPATIBILITY: wit-bindgen CLI 0.44.0 - 0.46.0
185+
// COMPATIBILITY: wit-bindgen CLI 0.44.0 - 0.49.0
186186
// This wrapper provides a wit_bindgen::rt module compatible with the CLI-generated code.
187187
// The runtime provides allocation helpers and cleanup guards expected by generated bindings.
188188
//

0 commit comments

Comments
 (0)