From 915992a3a752925a6c96b3d4967e4a591d90797e Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sat, 21 Oct 2023 23:03:38 -0500 Subject: [PATCH] Bump to Wasmtime 14 (#198) --- BUILD.bazel | 2 +- README.md | 14 +++++++------- ci/download-wasmtime.py | 3 +-- example_test.go | 2 +- go.mod | 2 +- includebuild.go | 14 +++++++------- 6 files changed, 18 insertions(+), 19 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index 2ee8b3c..ef3db1d 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -63,7 +63,7 @@ go_library( ], "//conditions:default": [], }), - importpath = "github.com/bytecodealliance/wasmtime-go/v13", + importpath = "github.com/bytecodealliance/wasmtime-go/v14", visibility = ["//visibility:public"], ) diff --git a/README.md b/README.md index 704c1c2..3d0f595 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,8 @@ CI status - - Documentation + + Documentation Code Coverage @@ -25,7 +25,7 @@ ## Installation ```sh -go get -u github.com/bytecodealliance/wasmtime-go/v13@v13.0.0 +go get -u github.com/bytecodealliance/wasmtime-go/v14@v14.0.0 ``` Be sure to check out the [API documentation][api]! @@ -39,7 +39,7 @@ need to arrange to build Wasmtime and use `CGO_*` env vars to compile correctly. This project has been tested with Go 1.13 or later. -[api]: https://pkg.go.dev/github.com/bytecodealliance/wasmtime-go/v13 +[api]: https://pkg.go.dev/github.com/bytecodealliance/wasmtime-go/v14 [wasmtime]: https://github.com/bytecodealliance/wasmtime If you are a bazel user, add following to your WORKSPACE file: @@ -47,8 +47,8 @@ If you are a bazel user, add following to your WORKSPACE file: ``` go_repository( name = "com_github_bytecodealliance_wasmtime_go", - importpath = "github.com/bytecodealliance/wasmtime-go/v13", - version = "v13.0.0", + importpath = "github.com/bytecodealliance/wasmtime-go/v14", + version = "v14.0.0", ) ``` @@ -61,7 +61,7 @@ package main import ( "fmt" - "github.com/bytecodealliance/wasmtime-go/v13" + "github.com/bytecodealliance/wasmtime-go/v14" ) func main() { diff --git a/ci/download-wasmtime.py b/ci/download-wasmtime.py index be03ab0..cebaa2c 100644 --- a/ci/download-wasmtime.py +++ b/ci/download-wasmtime.py @@ -10,8 +10,7 @@ import glob -#version = 'v13.0.0' -version = 'dev' +version = 'v14.0.0' urls = [ ['wasmtime-{}-x86_64-mingw-c-api.zip', 'windows-x86_64'], ['wasmtime-{}-x86_64-linux-c-api.tar.xz', 'linux-x86_64'], diff --git a/example_test.go b/example_test.go index a9a256e..a7eacfc 100644 --- a/example_test.go +++ b/example_test.go @@ -10,7 +10,7 @@ import ( "strings" "time" - "github.com/bytecodealliance/wasmtime-go/v13" + "github.com/bytecodealliance/wasmtime-go/v14" ) // Example of limiting a WebAssembly function's runtime using "fuel consumption". diff --git a/go.mod b/go.mod index 9ba27c1..37cea1a 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/bytecodealliance/wasmtime-go/v13 +module github.com/bytecodealliance/wasmtime-go/v14 go 1.18 diff --git a/includebuild.go b/includebuild.go index 867bdeb..0b10bae 100644 --- a/includebuild.go +++ b/includebuild.go @@ -12,11 +12,11 @@ import ( // included in vendored dependencies. // Cf. https://github.com/golang/go/issues/26366 - _ "github.com/bytecodealliance/wasmtime-go/v13/build/include" - _ "github.com/bytecodealliance/wasmtime-go/v13/build/include/wasmtime" - _ "github.com/bytecodealliance/wasmtime-go/v13/build/linux-aarch64" - _ "github.com/bytecodealliance/wasmtime-go/v13/build/linux-x86_64" - _ "github.com/bytecodealliance/wasmtime-go/v13/build/macos-aarch64" - _ "github.com/bytecodealliance/wasmtime-go/v13/build/macos-x86_64" - _ "github.com/bytecodealliance/wasmtime-go/v13/build/windows-x86_64" + _ "github.com/bytecodealliance/wasmtime-go/v14/build/include" + _ "github.com/bytecodealliance/wasmtime-go/v14/build/include/wasmtime" + _ "github.com/bytecodealliance/wasmtime-go/v14/build/linux-aarch64" + _ "github.com/bytecodealliance/wasmtime-go/v14/build/linux-x86_64" + _ "github.com/bytecodealliance/wasmtime-go/v14/build/macos-aarch64" + _ "github.com/bytecodealliance/wasmtime-go/v14/build/macos-x86_64" + _ "github.com/bytecodealliance/wasmtime-go/v14/build/windows-x86_64" )