-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
tinygo with flabuffers branch not working #8
Comments
hi @gedw99 yes this is the last issue i had with tinygo and flatbuffers, im still in the process, but at least for now .wasm with go is like 3mb less |
an update to this, if you pull latest changes from flatbuffers and use this version: ➜ openpgp-mobile git:(flatbuffers) go version
go version go1.15.11 linux/amd64
➜ openpgp-mobile git:(flatbuffers) tinygo version
tinygo version 0.17.0 linux/amd64 (using go version go1.15.11 and LLVM version 11.0.0)
➜ openpgp-mobile git:(flatbuffers) make wasm_tinygo
mkdir -p output/wasm
tinygo build -tags=math_big_pure_go -o output/wasm/openpgp.wasm -target wasm wasm/main.go
cp `tinygo env TINYGOROOT`/targets/wasm_exec.js output/wasm/wasm_exec.js
cp output/wasm/openpgp.wasm wasm/sample/public/openpgp.wasm
cp output/wasm/wasm_exec.js wasm/sample/public/wasm_exec.js
wasm tinygo build succesfully but when i try to test in sample returns an error ➜ openpgp-mobile git:(flatbuffers) ✗ cd wasm/sample
➜ sample git:(flatbuffers) ✗ yarn
yarn install v1.22.10
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.15s.
➜ sample git:(flatbuffers) ✗ yarn start
yarn run v1.22.10
$ node server.js
Wasm app listening on port 3000!
seems like i need to add a missing hash to make it work panic: crypto: requested hash function #357444 is unavailable
and about this error |
thanks for the hints. I have not started to dig into them. Tinygo updated to v0.18.0 yesterday with some wasm changes, so first trying that. On branch flatbuffers
classic go wasm
tinygo wasm
|
Also https://github.com/jerson/openpgp-mobile/releases does not have a flatbuffers release yet So the https://github.com/jerson/flutter-openpgp/blob/flatbuffers/scripts/upgrade_bridge_flatbuffers.sh script wont work i think... |
if you want to use upgrade script you need to specify a version, bc flatbuffers is a prerelease https://github.com/jerson/openpgp-mobile/releases/tag/v1.0.0-rc0 VERSION=v1.0.0-rc0 ./upgrade_bridge_flatbuffers.sh |
thanks - will try now. |
flutter project is bailing on me. Will raise an issue if i cant sort out whats going on. |
The text was updated successfully, but these errors were encountered: