Stream: wasi

Topic: std::net in browser_wasi_shim


view this post on Zulip mac (Sep 27 2023 at 13:00):

cross posting from rust-lang.zulipchat.com:

bjorn3 I just stumbled across your wasip1 polyfill lib and it's beautiful. I wanted to get your take on my plans to contribute to it by supporting parts of std::net (tcp / udp sockets), but it would be via the direct-sockets api; chromium only for the foreseeable future. If this is the wrong channel apologies in advance! :octopus:

I forked the chromium explainer telnet client to show how to open a udp socket in this repo

I very much wish mozilla wasn't as hostile to that direct-sockets working group, but I understand their take (security!). I was thinking about just wiring up std::net to a window.websocket or a window.webstransport stream which would work with the big three, but that adds an external websockify service dependency and bind() would be a kludge.

If this message does not go away, try reloading the page.

view this post on Zulip Ben Taylor (Sep 30 2023 at 12:30):

@mac do you have a link to the original polyfill? Very interested.

view this post on Zulip bjorn3 (Oct 01 2023 at 20:47):

Do you mean https://github.com/bjorn3/browser_wasi_shim/?

A WASI shim for in the browser. Contribute to bjorn3/browser_wasi_shim development by creating an account on GitHub.

Last updated: Nov 22 2024 at 16:03 UTC