-
Notifications
You must be signed in to change notification settings - Fork 30
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
compiling wasm package using tinygo failed due to unsupported library #250
Comments
It is fine to remove |
I wrote this back in June to Saswata. I tried for a couple hours to get tinygo working because it had a nice compilation feature to automatically translate functions so we don't have wrapper code. I found it was a deadend because tinygo does not support network calls. Did you find something has changed in the past 4 months? Do they support network calls now?
|
|
Here was the 20 line program:
Try compiling with: "tinygo build -o tinygo.wasm -target wasm ./tinygo.go"
while compiling with the normal wasm does work |
I try to compile the wasm package using tinygo and get an error that I describe here.
Moreover, I found this list of package that is supported by tinygo here.
When looking at mapstructure, I only found 2 files that using it,
0chain/gosdk/zboxcore/fileref/list.go
and0chain/gosdk/zboxcore/fileref/refpath.go
.There might be another error that is related it so I may open this issue until wasm package is successfully compiled with tinygo.
any thought, @cnlangzi @moldis @mallochine?
The text was updated successfully, but these errors were encountered: