-
Notifications
You must be signed in to change notification settings - Fork 911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
std net package does not supported in wasm/wasi #2704
Comments
WASI does seem to have the beginnings of support for sockets, see |
I have not tried this, but the following may be helpful.
|
same issue here is my error log
|
Is it worked on? |
See: #3704 (I haven't followed the development very closely). |
Also one more query does tinygo support cobra cli package? I know its not the right place but whom to ask😕 |
@dipankardas011 you can test so for yourself, it only takes a few seconds 😉 |
Problem description
code example:
compile command:
tinygo build -o demo.wasm -target=wasi ./test.go
out:
Background
When I want to import package
golang.org/x/crypto/ssh
, trying to connect to ssh server in a wasm module, some err occurs while compile:As we can see,
ssh
importnet
package which does not support many methods or types it reqiuired.Is there any plan to support the official
net
library?The text was updated successfully, but these errors were encountered: