tinygo-org / tinygo

Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.
https://tinygo.org
Other
14.72k stars 858 forks source link

Does tinygo not support TLS features? #4269

Open jrovis opened 1 month ago

jrovis commented 1 month ago

Does tinygo not support TLS features?

My Question:

tinygo build -o main.wasm -target=wasi main.go

# github.com/segmentio/kafka-go/protocol
../../../../go/pkg/mod/github.com/segmentio/kafka-go@v0.4.47/protocol/response.go:156:24: undefined: tls.VersionTLS13
../../../../go/pkg/mod/github.com/segmentio/kafka-go@v0.4.47/protocol/response.go:156:55: undefined: tls.VersionTLS10

Compile environment: go version go1.22.3 darwin/amd64 tinygo version 0.31.2 darwin/amd64 (using go version go1.22.3 and LLVM version 17.0.1) kafka-go v0.4.47