Go 1.26 introduced a new crypto package containing several core interfaces. However, this package is currently missing in TinyGo ^0.41.0, leading to compilation errors when using libraries that depend on the new standard library structure.
For local development, the package can be manually copied from the GOROOT to the TINYGOROOT:
cp $(go env GOROOT)/src/crypto/crypto.go $(tinygo env TINYGOROOT)/src/crypto/
I suggest including this file in the TinyGo to maintain compatibility with Go 1.26.
Go 1.26 introduced a new
cryptopackage containing several core interfaces. However, this package is currently missing in TinyGo ^0.41.0, leading to compilation errors when using libraries that depend on the new standard library structure.For local development, the package can be manually copied from the GOROOT to the TINYGOROOT:
I suggest including this file in the TinyGo to maintain compatibility with Go 1.26.