WebAssembly / WebAssembly/wabt

can't transfer http.wasm to wat

Open
#2,643 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
8.1k
Forks
827
Avg merge
4d 6h
Merged PRs (30d)
18

Description

  • server:
wasmtime serve  http.wasm
Serving HTTP on http://0.0.0.0:8080/
  • client:
curl -vv -iL 127.0.0.1:8080 
10:29:36.090000 [0-0] * [SETUP] added
10:29:36.092000 [0-0] *   Trying 127.0.0.1:8080...
10:29:36.094000 [0-0] * [SETUP] Curl_conn_connect(block=0) -> 0, done=0
10:29:36.096000 [0-0] * [SETUP] Curl_conn_connect(block=0) -> 0, done=1
10:29:36.097000 [0-0] * Connected to 127.0.0.1 (127.0.0.1) port 8080
10:29:36.100000 [0-0] * using HTTP/1.x
10:29:36.102000 [0-0] > GET / HTTP/1.1
10:29:36.102000 [0-0] > Host: 127.0.0.1:8080
10:29:36.102000 [0-0] > User-Agent: curl/8.13.0
10:29:36.102000 [0-0] > Accept: */*
10:29:36.102000 [0-0] >
10:29:36.109000 [0-0] < HTTP/1.1 200 OK
HTTP/1.1 200 OK
10:29:36.110000 [0-0] < transfer-encoding: chunked
transfer-encoding: chunked
10:29:36.112000 [0-0] < date: Mon, 22 Sep 2025 02:29:36 GMT
date: Mon, 22 Sep 2025 02:29:36 GMT
10:29:36.114000 [0-0] <

Hello World10:29:36.116000 [0-0] * Connection #0 to host 127.0.0.1 left intact

and it can't work

wasm2wat http.wasm
0000008: error: wasm components are not yet supported in this tool

the http server codes from here https://github.com/moonbitlang/moonbit-docs/tree/main/legacy/examples/wasi-http

http.zip

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with wasm2wat http.wasm and inspect the attached http.zip, whose component origin is linked in the issue. Read the wasm2wat entry point and existing component-format handling, then verify that the command can emit valid WAT for this component and that the relevant tests cover the conversion.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, wasm
Domain
cli, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.