Skip to content

feat(netwatch): route wasm32-wasip2 to the netdev-free posix_minimal branch - #1

Open
lann wants to merge 1 commit into
mainfrom
wasi-posix-minimal
Open

feat(netwatch): route wasm32-wasip2 to the netdev-free posix_minimal branch#1
lann wants to merge 1 commit into
mainfrom
wasi-posix-minimal

Conversation

@lann

@lann lann commented Aug 7, 2026

Copy link
Copy Markdown
Owner

netdev (system interface enumeration) does not build for wasm32-wasip2. Extend the posix_minimal alias to cover wasi alongside espidf and exclude the netdev dependency there, so wasi takes the existing minimal interface-reporting path. The netdev entry gets its own target block so the tokio fs/io-std features keep their current cfg.

Branched from netwatch-v0.19.1 (the version iroh main requires, ^0.19.1), which is what the polymorph experiments consume — see polymorph-components/polymorph-iroh#25. Porting note: main has since restructured these cfgs around a netdev alias; an upstream PR should target that alias rather than this literal diff.

Sibling: the inline-socket-close drop fix. Both merged into the long-lived polymorph-iroh branch the experiments consume.

…branch

netdev (system interface enumeration) does not build for
wasm32-wasip2. Extend the `posix_minimal` alias to cover wasi alongside
espidf and exclude the netdev dependency there, so wasi takes the
existing minimal interface-reporting path.

Part of running iroh on wasm32-wasip2 components
(polymorph-components/polymorph-iroh#25). Note: main has since
restructured these cfgs around a `netdev` alias; a port of this change
onto main should target that alias instead.
lann added a commit to polymorph-components/polymorph-iroh that referenced this pull request Aug 7, 2026
…oh branch

Same treatment as the iroh crates: the two netwatch deltas now live as
PR branches on the fork (lann/net-tools#1 wasi posix_minimal/netdev
routing, #2 inline socket close on drop), merged into its
`polymorph-iroh` branch — the netwatch-v0.19.1 tag (iroh main still
requires ^0.19.1) plus exactly the patches the vendor tree carried,
source files verified byte-identical before the swap. The guests
consume the branch through [patch.crates-io]; the vendor tree is gone.

Verified: all three guests build; iroh-relay-ws run (migration 53ms),
iroh-blobs verified fetches across the migration, and the full
ping-demo Playwright suite pass.
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.

1 participant