-
Notifications
You must be signed in to change notification settings - Fork 56
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
The binary rules got violated #350
Comments
This is related to the binary format change in WebAssembly/component-model#263. It appears something is still writing out old-style component import section entries that start with 0x01. |
sunfishcode
added a commit
to sunfishcode/cargo-component
that referenced
this issue
Nov 15, 2024
Update to the latest wit-bindgen, wasm-tools, warg, and wasi-preview1-component-adapter-provider crates. In particular, this updates to the wasm-encoder that always uses a leading zero byte, following WebAssembly/component-model#263. Fixes bytecodealliance#350.
It appears cargo-component 0.18 is using an older version of wasm-encoder. I've now submitted #352 to fix this. |
Released 0.19 with the fix |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found an example (https://github.com/sunfishcode/hello-wasi-http) that violates import/export name rules
The problem part is pointed out as below:
At
0x1a
it uses old encoding, meanwhile, at0x215de2
it uses the rule as document.Tools version
The text was updated successfully, but these errors were encountered: