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.
@mac do you have a link to the original polyfill? Very interested.
Do you mean https://github.com/bjorn3/browser_wasi_shim/?
Last updated: Dec 23 2024 at 13:07 UTC