diff --git a/.github/workflows/examples.yaml b/.github/workflows/examples.yaml index d6f7ead7..a86016e5 100644 --- a/.github/workflows/examples.yaml +++ b/.github/workflows/examples.yaml @@ -17,7 +17,7 @@ on: env: EMSDK_VERSION: "3.1.40" - TINYGO_VERSION: "0.27.0" + TINYGO_VERSION: "0.28.1" ZIG_VERSION: "0.11.0-dev.3334+cd1417dbd" concurrency: diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index 14ceb8c2..6d35d1f6 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -19,7 +19,7 @@ defaults: env: # Update this prior to requiring a higher minor version in go.mod GO_VERSION: "1.20" # 1.xx == latest patch of 1.xx - TINYGO_VERSION: "0.27.0" + TINYGO_VERSION: "0.28.1" ZIG_VERSION: "0.11.0-dev.3334+cd1417dbd" concurrency: @@ -143,7 +143,7 @@ jobs: - name: Build Test Binaries if: steps.binary-cache.outputs.cache-hit != 'true' # The following list of packages is derived from: - # https://github.com/tinygo-org/tinygo/blob/v0.27.0/Makefile#L277-L324 + # https://github.com/tinygo-org/tinygo/blob/v0.28.1/Makefile#L281-L322 # Note: # - index/suffixarray is extremely slow, so skip it. # - compress/zlib is skipped as it depends on the local files https://github.com/golang/go/blob/go1.20/src/compress/zlib/writer_test.go#L16-L30 diff --git a/examples/allocation/tinygo/testdata/greet.go b/examples/allocation/tinygo/testdata/greet.go index ee8d1e5d..04f67998 100644 --- a/examples/allocation/tinygo/testdata/greet.go +++ b/examples/allocation/tinygo/testdata/greet.go @@ -27,10 +27,7 @@ func log(message string) { // _log is a WebAssembly import which prints a string (linear memory offset, // byteCount) to the console. // -// Note: In TinyGo "//export" on a func is actually an import! -// -//go:wasm-module env -//export log +//go:wasmimport env log func _log(ptr, size uint32) // greeting gets a greeting for the name. diff --git a/examples/allocation/tinygo/testdata/greet.wasm b/examples/allocation/tinygo/testdata/greet.wasm index 25fb8f73..4ee17d9c 100755 Binary files a/examples/allocation/tinygo/testdata/greet.wasm and b/examples/allocation/tinygo/testdata/greet.wasm differ diff --git a/examples/basic/testdata/add.wasm b/examples/basic/testdata/add.wasm index 3a9da803..259ca4f0 100755 Binary files a/examples/basic/testdata/add.wasm and b/examples/basic/testdata/add.wasm differ diff --git a/examples/cli/testdata/cli.wasm b/examples/cli/testdata/cli.wasm index f38dbb3c..d12a81a3 100755 Binary files a/examples/cli/testdata/cli.wasm and b/examples/cli/testdata/cli.wasm differ diff --git a/imports/wasi_snapshot_preview1/example/testdata/tinygo/cat.wasm b/imports/wasi_snapshot_preview1/example/testdata/tinygo/cat.wasm index 2364369f..3346d1dd 100755 Binary files a/imports/wasi_snapshot_preview1/example/testdata/tinygo/cat.wasm and b/imports/wasi_snapshot_preview1/example/testdata/tinygo/cat.wasm differ diff --git a/internal/integration_test/bench/testdata/case.wasm b/internal/integration_test/bench/testdata/case.wasm index 9a5c9e83..1028ba63 100755 Binary files a/internal/integration_test/bench/testdata/case.wasm and b/internal/integration_test/bench/testdata/case.wasm differ diff --git a/site/content/docs/how_do_compiler_functions_work.md b/site/content/docs/how_do_compiler_functions_work.md index db2c44f4..0dffe7db 100644 --- a/site/content/docs/how_do_compiler_functions_work.md +++ b/site/content/docs/how_do_compiler_functions_work.md @@ -89,8 +89,7 @@ import "unsafe" // random_get is a function defined on the host, specifically, the wazero // program written in Go. // -//go:wasm-module wasi_snapshot_preview1 -//export random_get +//go:wasmimport wasi_snapshot_preview1 random_get func random_get(ptr uintptr, size uint32) (errno uint32) // main is compiled to wasm, so this is the guest. Conventionally, this ends up