Skip to content

Commit

Permalink
Bump to Wasmtime 14 (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton authored Oct 22, 2023
1 parent c050335 commit 915992a
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
)

Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<a href="https://github.com/bytecodealliance/wasmtime-go/actions?query=workflow%3ACI">
<img src="https://github.com/bytecodealliance/wasmtime-go/workflows/CI/badge.svg" alt="CI status"/>
</a>
<a href="https://pkg.go.dev/github.com/bytecodealliance/wasmtime-go/v13">
<img src="https://godoc.org/github.com/bytecodealliance/wasmtime-go/v13?status.svg" alt="Documentation"/>
<a href="https://pkg.go.dev/github.com/bytecodealliance/wasmtime-go/v14">
<img src="https://godoc.org/github.com/bytecodealliance/wasmtime-go/v14?status.svg" alt="Documentation"/>
</a>
<a href="https://bytecodealliance.github.io/wasmtime-go/coverage.html">
<img src="https://img.shields.io/badge/coverage-main-green" alt="Code Coverage"/>
Expand All @@ -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]!
Expand All @@ -39,16 +39,16 @@ 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:

```
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",
)
```

Expand All @@ -61,7 +61,7 @@ package main

import (
"fmt"
"github.com/bytecodealliance/wasmtime-go/v13"
"github.com/bytecodealliance/wasmtime-go/v14"
)

func main() {
Expand Down
3 changes: 1 addition & 2 deletions ci/download-wasmtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
2 changes: 1 addition & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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".
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/bytecodealliance/wasmtime-go/v13
module github.com/bytecodealliance/wasmtime-go/v14

go 1.18

Expand Down
14 changes: 7 additions & 7 deletions includebuild.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

0 comments on commit 915992a

Please sign in to comment.