img-cdn / imgPlugin

0 stars 1 forks source link

build failure #2

Open gedw99 opened 2 months ago

gedw99 commented 2 months ago
imgPlugin % tinygo build -target wasi -scheduler asyncify -gc conservative -size full -o test.wasm ./resize/resize.go

# github.com/knqyf263/go-plugin/wasm
../../../pkg/mod/github.com/knqyf263/go-plugin@v0.8.0/wasm/plugin.go:18:10: cannot use uintptr(size) (value of type uintptr) as int value in assignment
../../../pkg/mod/github.com/knqyf263/go-plugin@v0.8.0/wasm/plugin.go:19:10: cannot use uintptr(size) (value of type uintptr) as int value in assignment
gedw99 commented 2 months ago

Issue is higher up. There are compile errors when building plugin with (latest) tinygo v0.32.0

https://github.com/knqyf263/go-plugin/issues/64

gedw99 commented 2 months ago

There is another wasm plugin system that is more popular. https://github.com/extism/extism

It's not pure go and is more complicated too.

HydeZhaoToo commented 2 months ago

Thank you for your suggestion. I will replace the plugin package soon.