Skip to content
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

wasm2wat: support component wasm #2405

Open
wst24365888 opened this issue Mar 25, 2024 · 1 comment
Open

wasm2wat: support component wasm #2405

wst24365888 opened this issue Mar 25, 2024 · 1 comment

Comments

@wst24365888
Copy link

First of all, thank you for providing these great tools.
When I try to convert component wasm file to .wat, it keep says:

0000008: error: bad wasm file version: 0x1000d (expected 0x1)

To reproduce, simply follow the instruction in this doc to build the component and use wasm2wat to convert it to .wat

Version:

> cargo --version
cargo 1.77.0 (3fe68eabf 2024-02-29)
> cargo component --version
cargo-component-component 0.10.1 (wasi:ab5a448)
> wasm2wat --version
1.0.34
@sbc100
Copy link
Member

sbc100 commented Mar 25, 2024

The component model is still a phase 1 proposal: https://github.com/WebAssembly/proposals

I believe it would require a fair amount of work to support it in wabt, but if you (or somebody else) would like to take a look at implementing it that would be most welcome.

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

No branches or pull requests

2 participants