From 43bf38df5aae23e6821c82126ab46a90fcd3082c Mon Sep 17 00:00:00 2001 From: "Anuraag (Rag) Agrawal" Date: Thu, 7 Mar 2024 16:34:01 +0900 Subject: [PATCH] Update to latest wazero (#13) --- go.mod | 2 +- go.sum | 4 ++-- internal/runner/runner.go | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index aded17b..a1b65a3 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index e702bb5..b69b851 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/internal/runner/runner.go b/internal/runner/runner.go index 0901cbc..cf78999 100644 --- a/internal/runner/runner.go +++ b/internal/runner/runner.go @@ -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" @@ -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)