Stream: git-wasmtime

Topic: wasmtime / issue #7149 [wasmtime-wasi] StdinStream and St...


view this post on Zulip Wasmtime GitHub notifications bot (Oct 04 2023 at 17:56):

dicej opened issue #7149:

I'm updating some code from Wasmtime 13 to the main branch, and noticed that it does not appear to be possible to implement StdinStream or StdoutStream outside of wasmtime-wasi given that the stdio module is private and those traits are not re-exported anywhere. Is this intentional? If so, is there some other way to e.g. connect stdin to an arbitrary AsyncReadStream?

If it's not intentional, I'd be happy to open a PR to make those traits public.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 04 2023 at 18:02):

alexcrichton commented on issue #7149:

Oops indeed that's a bug, a PR sounds good!

view this post on Zulip Wasmtime GitHub notifications bot (Oct 04 2023 at 18:05):

dicej edited issue #7149:

I'm updating some code from Wasmtime 13 to the main branch, and noticed that it does not appear to be possible to implement StdinStream or StdoutStream outside of wasmtime-wasi given that the stdio module is private and those traits are not re-exported anywhere. Is this intentional? If so, is there some other way to e.g. connect stdin to an arbitrary AsyncReadStream?

If it's not intentional, I'd be happy to open a PR to make those traits public.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 04 2023 at 19:47):

dicej closed issue #7149:

I'm updating some code from Wasmtime 13 to the main branch, and noticed that it does not appear to be possible to implement StdinStream or StdoutStream outside of wasmtime-wasi given that the stdio module is private and those traits are not re-exported anywhere. Is this intentional? If so, is there some other way to e.g. connect stdin to an arbitrary AsyncReadStream?

If it's not intentional, I'd be happy to open a PR to make those traits public.


Last updated: Dec 23 2024 at 13:07 UTC