Open halfrost opened 2 years ago
Try building with -tags=appengine
to get a safe version of xxhash.
@dgryski I try this command:
CGO_ENABLED=0 tinygo build -o main.wasm -scheduler=none -tags=appengine -target=wasi main.go
But still error:
# github.com/golang/protobuf/proto
../../pkg/mod/github.com/golang/protobuf@v1.4.3/proto/registry.go:230:16: MapOf not declared by package reflect
Yup, that's a current limitation of the reflect
package. There are patches in progress to fix that, but otherwise no timeline for getting them merged.
OK, I'll keep an eye on your patch. You can add a tag to this issue with the patch you mentioned.
@dgryski same problem here. https://github.com/XTLS/Xray-core/issues/1473#issuecomment-1367775901
hen I use tinygo to compile wasm plugin:
compile error. The error log is:
Once I disabled the cgo compile parameters,
The error log is:
My dependencies include prometheus and etcd. Both of their dependencies include xxhash. Is there any good idea?