Stream: git-wasmtime

Topic: wasmtime / issue #4978 Unable to run tcp socket in wasmtime


view this post on Zulip Wasmtime GitHub notifications bot (Sep 29 2022 at 10:39):

expploitt edited issue #4978:

I would like to know the state of networking in wasmtime 1.0.0, because I can compile tcplistener with the target wasm32-wasi but then wasmtime throws error "funcionality not supported".

I would like to know if I have to preopend sockets or to use some specific crate in the case of having basic networking available.

Thanks!

view this post on Zulip Wasmtime GitHub notifications bot (Sep 29 2022 at 11:08):

bjorn3 commented on issue #4978:

https://github.com/bytecodealliance/wasmtime/pull/3729 added the arguments of which you need to use one to open the socket and https://github.com/rust-lang/rust/pull/93158 implemented rust support and provides a code snippet you can use.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 30 2022 at 14:17):

alexcrichton commented on issue #4978:

Indeed I believe this is implemented to the extent that WASI supports sockets today, if you'd like more functionality I'd recommend opening an issue on the WASI proposal to extend the sockets proposal.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 30 2022 at 14:17):

alexcrichton closed issue #4978:

I would like to know the state of networking in wasmtime 1.0.0, because I can compile tcplistener with the target wasm32-wasi but then wasmtime throws error "funcionality not supported".

I would like to know if I have to preopend sockets or to use some specific crate in the case of having basic networking available.

Thanks!


Last updated: Dec 23 2024 at 12:05 UTC