From f527911816333c19d6844631cd9a1d213415f278 Mon Sep 17 00:00:00 2001 From: Roman Volosatovs Date: Thu, 30 Mar 2023 16:01:11 +0200 Subject: [PATCH] fix: rename `streams` interface Unfortunately, naming the interface dependency `streams` causes a clash with `wasi_snapshot_preview1.wasm` `streams` causing a runtime panic in `wit-component`. While the fix for this issue clearly belongs upstream, rename the interface to allow users to utilize the `wasi-http` interface out-of-the-box already today. Refs https://github.com/bytecodealliance/wasm-tools/issues/967 Signed-off-by: Roman Volosatovs --- wit/deps/io/streams.wit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wit/deps/io/streams.wit b/wit/deps/io/streams.wit index c1567fd..2bc0910 100644 --- a/wit/deps/io/streams.wit +++ b/wit/deps/io/streams.wit @@ -3,7 +3,7 @@ /// /// In the future, the component model is expected to add built-in stream types; /// when it does, they are expected to subsume this API. -default interface streams { +default interface io-streams { use poll.poll.{pollable} /// An error type returned from a stream operation. Currently this