Skip to content

Implement upstream spec changes for component text syntax - #2562

Merged
fitzgen merged 2 commits into
bytecodealliance:mainfrom
alexcrichton:adjust-component-text-format
Jul 10, 2026
Merged

fitzgen merged 2 commits into
bytecodealliance:mainfrom
alexcrichton:adjust-component-text-format

Conversation

@alexcrichton

Copy link
Copy Markdown
Member

This commit is an implementation of WebAssembly/component-model#655 where parsing of components is updated in a few locations. This is a breaking change to the text format so it's done in a manner where both the previous and new form are accepted. The plan is to have a release or two of accepting the old syntax and new, then have a release or two of defaulting to only accepting the new syntax, followed by eventually removing support for the old syntax.

This commit is an implementation of WebAssembly/component-model#655
where parsing of components is updated in a few locations. This is a
breaking change to the text format so it's done in a manner where both
the previous and new form are accepted. The plan is to have a release or
two of accepting the old syntax and new, then have a release or two of
defaulting to only accepting the new syntax, followed by eventually
removing support for the old syntax.
@alexcrichton
alexcrichton requested a review from a team as a code owner July 10, 2026 01:38
@alexcrichton
alexcrichton requested review from fitzgen and removed request for a team July 10, 2026 01:38
@fitzgen
fitzgen added this pull request to the merge queue Jul 10, 2026
Merged via the queue into bytecodealliance:main with commit bf2ad79 Jul 10, 2026
37 checks passed
@alexcrichton
alexcrichton deleted the adjust-component-text-format branch July 10, 2026 17:55
pull Bot pushed a commit to eduardomourar/wasmtime that referenced this pull request Jul 24, 2026
Account for WebAssembly/component-model#655 within this repo. There is a
strict gate added in bytecodealliance/wasm-tools#2562 as well, and I'll
add that in a future commit after this lands.
yagehu pushed a commit to yagehu/wasmtime-x that referenced this pull request Jul 26, 2026
Account for WebAssembly/component-model#655 within this repo. There is a
strict gate added in bytecodealliance/wasm-tools#2562 as well, and I'll
add that in a future commit after this lands.
chacailline pushed a commit to chacailline/wasm-tools that referenced this pull request Sep 2, 2026
…#2633)

This commit is a continuation of bytecodealliance#2562 in the plan to phase out the
historical form of specifying indices in the text format of the
component model. The `wast` crate still supports the old version but
requires an env var opt-in now of `WAST_STRICT_COMPONENT_INDICES=0`.
social4hyq pushed a commit to social4hyq/homebrew-core that referenced this pull request Sep 20, 2026
wasm-tools 1.254.0

Created-by: HarmonybrewBot
Commit-by: HarmonybrewBot
Merged-by: HarmonybrewBot
Description: Created by `brew bump`

---

Created with `brew bump-formula-pr`.<details>
  <summary>release notes</summary>
  <pre>## What's Changed
* Reject out-of-range NaN payloads and bare type-index value types by @vouillon in bytecodealliance/wasm-tools#2563
* Implement upstream spec changes for component text syntax by @alexcrichton in bytecodealliance/wasm-tools#2562
* wasmparser: require result equivalence for `(on $t switch)` handler by @vouillon in bytecodealliance/wasm-tools#2564
* Prevent unbounded recursion when parsing WITs by @alexcrichton in bytecodealliance/wasm-tools#2565
* Add a parse recurse limit to `wasm-wave` by @alexcrichton in bytecodealliance/wasm-tools#2566
* wasm-metadata: Place a limit on decompression size by @alexcrichton in bytecodealliance/wasm-tools#2567
* Fix limiting 32-bit tables with `wasm-smith` by @alexcrichton in bytecodealliance/wasm-tools#2569
* Validate component model type depth by @alexcrichton in bytecodealliance/wasm-tools#2570
* Fix requiring `realloc` for `async`-lowered results-with-pointers by @alexcrichton in bytecodealliance/wasm-tools#2572
* Call `__wasm_init_task` for `_initialize` hook by @alexcrichton in bytecodealliance/wasm-tools#2574
* Release wasm-tools 1.254.0 by @github-actions[bot] in bytecodealliance/wasm-tools#2575

## New Contributors
* @vouillon made their first contribution in bytecodealliance/wasm-tools#2563

**Full Changelog**: https://github.com/bytecodealliance/wasm-tools/compare/v1.253.0...v1.254.0</pre>
  <p>View the full release notes at <a href="https://github.com/bytecodealliance/wasm-tools/releases/tag/v1.254.0">https://github.com/bytecodealliance/wasm-tools/releases/tag/v1.254.0</a>.</p>
</details>
<hr>

See merge request: Harmonybrew/homebrew-core!14731
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.

2 participants