Skip to content

Bump wasmparser from 0.224.1 to 0.235.0 #629

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 16, 2025

Bumps wasmparser from 0.224.1 to 0.235.0.

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the kind/dependencies For PRs that update dependencies or related components label Jun 16, 2025
@dependabot dependabot bot force-pushed the dependabot/cargo/wasmparser-0.235.0 branch from 10d5cf3 to ccd94e8 Compare June 23, 2025 04:24
@jsturtevant
Copy link
Contributor

Looking at the errors. this is going to need manual intervention to update the API changes

@jsturtevant
Copy link
Contributor

pulling the commit message out:

This was a bit more involved due to a big change in the way function return types are handled. The orginal change was done in WebAssembly/component-model#368 and put initially put behind a feature flag in bytecodealliance/wasm-tools#1670. In 0.226.0 version of wasmparser this feature flag was removed to simplify the return results. This in turn simplifies the handling of the results here as well.

@jsturtevant jsturtevant force-pushed the dependabot/cargo/wasmparser-0.235.0 branch from d7302c7 to d37eb17 Compare June 27, 2025 23:49
@jsturtevant
Copy link
Contributor

@syntactically could you take a look at these updates?

@syntactically
Copy link
Contributor

Some of this is sensible, but we should (a) still use a Result type alias or newtype struct for the Option<Value> used for result types and (b) think harder about whether there is a more ergonomic way to do FixedSizeList in the generated APIs.

@jsturtevant
Copy link
Contributor

Some of this is sensible, but we should (a) still use a Result type alias or newtype struct for the Option used for result types and (b) think harder about whether there is a more ergonomic way to do FixedSizeList in the generated APIs.

Added an alias, let me know what you think

for (b), is this something we need to do for bumping the dependency or something we can defer (and open an issue to fix)?

@jsturtevant jsturtevant force-pushed the dependabot/cargo/wasmparser-0.235.0 branch from 92f1b24 to 7903cd9 Compare July 1, 2025 00:51
@jsturtevant
Copy link
Contributor

jsturtevant commented Jul 1, 2025

for (a), is the reasoning for the alias/type so we keep the types in etypes inline with types in like https://github.com/WebAssembly/component-model/blob/35c6d24fb952f3810db3d0f966cfe9ccb8240501/design/mvp/Binary.md?plain=1#L219?

@syntactically
Copy link
Contributor

for (a), is the reasoning for the alias/type so we keep the types in etypes inline with types in like https://github.com/WebAssembly/component-model/blob/35c6d24fb952f3810db3d0f966cfe9ccb8240501/design/mvp/Binary.md?plain=1#L219?

Pretty much. Ideally the type section of the spec document but that's still being updated with these latest changes :)

@syntactically
Copy link
Contributor

for (b), is this something we need to do for bumping the dependency or something we can defer (and open an issue to fix)?

Maybe test that it works at all the current way, but yeah can probably put off for a couple of weeks if it does.

dependabot bot and others added 4 commits July 1, 2025 19:37
Bumps [wasmparser](https://github.com/bytecodealliance/wasm-tools) from 0.224.1 to 0.235.0.
- [Release notes](https://github.com/bytecodealliance/wasm-tools/releases)
- [Commits](https://github.com/bytecodealliance/wasm-tools/commits)

---
updated-dependencies:
- dependency-name: wasmparser
  dependency-version: 0.235.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
This was a bit more involved due to a big change in the way function return types are handled.  The orginal change was done in WebAssembly/component-model#368 and put initially put behind a feature flag in bytecodealliance/wasm-tools#1670. In 0.226.0 version of wasmparser this feature flag was removed simplify the return results.  This in turn simplifies the handling of the results here as well.

Signed-off-by: James Sturtevant <[email protected]>
Signed-off-by: James Sturtevant <[email protected]>
@jsturtevant jsturtevant force-pushed the dependabot/cargo/wasmparser-0.235.0 branch from ba97bbf to 887a187 Compare July 1, 2025 19:37
@jsturtevant
Copy link
Contributor

Maybe test that it works at all the current way, but yeah can probably put off for a couple of weeks if it does.

I added a test to verify that fixed lists do work with no modifications. Once I was doing that I saw how I could modify the rest the API so took a try at it.

@jsturtevant jsturtevant force-pushed the dependabot/cargo/wasmparser-0.235.0 branch from 887a187 to b211b3d Compare July 1, 2025 20:41
@jsturtevant jsturtevant force-pushed the dependabot/cargo/wasmparser-0.235.0 branch from b211b3d to 5f2eba9 Compare July 1, 2025 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/dependencies For PRs that update dependencies or related components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants