Skip to content

Commit

Permalink
Update to latest wazero (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraaga authored Mar 7, 2024
1 parent 9021b03 commit 43bf38d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ go 1.21

toolchain go1.21.6

require github.com/tetratelabs/wazero v1.6.1-0.20240306063534-c6924610329f
require github.com/tetratelabs/wazero v1.6.1-0.20240307062645-3c7bc733c5b2
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github.com/tetratelabs/wazero v1.6.1-0.20240306063534-c6924610329f h1:NhkfobJN+nDZcDcqljvYMLcAPWDXk+64LKTcu8oJGZ4=
github.com/tetratelabs/wazero v1.6.1-0.20240306063534-c6924610329f/go.mod h1:ytl6Zuh20R/eROuyDaGPkp82O9C/DJfXAwJfQ3X6/7Y=
github.com/tetratelabs/wazero v1.6.1-0.20240307062645-3c7bc733c5b2 h1:kEUVuoyLf9LNFcTdhpbHJ4DghetX+v37b3Q2uTC4Rw0=
github.com/tetratelabs/wazero v1.6.1-0.20240307062645-3c7bc733c5b2/go.mod h1:ytl6Zuh20R/eROuyDaGPkp82O9C/DJfXAwJfQ3X6/7Y=
3 changes: 1 addition & 2 deletions internal/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"github.com/tetratelabs/wazero"
"github.com/tetratelabs/wazero/api"
"github.com/tetratelabs/wazero/experimental"
"github.com/tetratelabs/wazero/experimental/opt"
"github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1"
wzsys "github.com/tetratelabs/wazero/sys"

Expand All @@ -20,7 +19,7 @@ import (
func Run(name string, wasm []byte) {
ctx := context.Background()

rt := wazero.NewRuntimeWithConfig(ctx, opt.NewRuntimeConfigOptimizingCompiler().WithCoreFeatures(api.CoreFeaturesV2|experimental.CoreFeaturesThreads))
rt := wazero.NewRuntimeWithConfig(ctx, wazero.NewRuntimeConfig().WithCoreFeatures(api.CoreFeaturesV2|experimental.CoreFeaturesThreads))

wasi_snapshot_preview1.MustInstantiate(ctx, rt)
wasix_32v1.MustInstantiate(ctx, rt)
Expand Down

0 comments on commit 43bf38d

Please sign in to comment.